From patchwork Fri Jan 27 17:55:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 647529 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp960525pvb; Fri, 27 Jan 2023 09:59:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXspWjYskOvFw6xZk+huXfGZ4pCSRP+1RXVlHOGJou+ulQpj/lmo4Et74Tu4Yjiu3o7xING0 X-Received: by 2002:ac8:53d0:0:b0:3b6:35a5:d578 with SMTP id c16-20020ac853d0000000b003b635a5d578mr63048920qtq.39.1674842342422; Fri, 27 Jan 2023 09:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674842342; cv=none; d=google.com; s=arc-20160816; b=H1LxtItOPNHHEgH6u60AIq86gj7g0C+2dKzkkK2yS3j5iKLuJEdGWjeBnAF05zL+vb HONzUBvk3I6pHqofxj7YWD16q+Q8/6jO+OTxMOgxXQw2Cpa6tQ8Tq2iXvz59syD/+9J2 eL8/f/kfyb/e8KksMNVMnst5hprhpI6LsUJjl1aeUaYUVudYYBvAsX+3BiUY1aj2Pr7S CyV2jikYFX7nlmPhZcm+cqmR2aDIIOssQSaE1gH+YcQWYlfqD472V5jQZJXwbbQwGhBo UzGxLiTfDdYw0lqo9t3VAQucdXIbxrLmP5YEaAAr5CdAe/IW1nuMCM2PNy3ER1F1Q2ER 7Kbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=zdjx41xGEJWHuXAOMwfC1PKZLRxR5ZaPbQIwstZaQaA=; b=w5Oi5JB0o+63gI2IwktR11D1sPXCeLbUEONeHe0jWjPVzkRtaDSEEFn8q2DSAqY529 prnM0eWOLTOV4tzwBUcCXNlV3ZbWEPz8jUL/ep05CceM3UwaZl2pQC3TDFFrfAawwFZk l63B+1/v+2uI3kYdQXs5xu7zJxgofV4AsfoAE0Gb29ixz/l5/mqsAaGLrgn1LTMEsKVY AFm3u7EaodDsMfi/BiLKzgl6Dvy4L/xtXaNwdxYu+0a6a6VG3BqVBGou0E0kEj28qmwS viucVVkql6gzgbkMgknqRyC/opHtrCGIRdPKDvUKkyMQvPxOnE3/pTRBIJFdj1QBg7zY 4M/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sK5xPSca; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k1-20020ac85fc1000000b003a6a81a8830si2760339qta.111.2023.01.27.09.59.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jan 2023 09:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sK5xPSca; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLSxD-00018V-Gp; Fri, 27 Jan 2023 12:55:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLSx1-0000xc-Uc for qemu-devel@nongnu.org; Fri, 27 Jan 2023 12:55:48 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pLSwo-00066b-SC for qemu-devel@nongnu.org; Fri, 27 Jan 2023 12:55:47 -0500 Received: by mail-wr1-x434.google.com with SMTP id r2so5666122wrv.7 for ; Fri, 27 Jan 2023 09:55:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=zdjx41xGEJWHuXAOMwfC1PKZLRxR5ZaPbQIwstZaQaA=; b=sK5xPSca5wFXODqoHTHNvMNPmQi7vO29knbgLsugNHWpgkwkG0KLdAr8LNSnnftd1T xt9zbRi8eP61dfFf3icjRVw9EBuWtrn/L2UXLXvj7IEhLF5NAwrzkAu0oLddc46RGH1b NjyQFxRI5ii/ymtzEsQYW6m6ZpyBVI5gBr/hWYWilKOKsqMNYoewYsghzebLwswcsA/D sscBFnYmsWvUGL33cv3O5JX/wQZxykEtDcM3DSiJ8Cjje3vTuJuc13BK3WqJlcSMWW/s BD/9zTYWe0D15NAr7EJrQSUGYtUXHVAhcwpaRFWQbW7Kd/PuCULqaPyDk5QioLJdXxzX CumA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zdjx41xGEJWHuXAOMwfC1PKZLRxR5ZaPbQIwstZaQaA=; b=5VDtiEttnna2TDt4TX8iyi2CFmh98PwJk4RXbIgIfILqgpIUBjdIMe8agfcweJxqO5 Nbz1JWK5WlNpmHyliOAOF44AbIuEtWk8si39rNVc16Bf/8zWpczgU+S0VwOq4yAWcUH7 vt+5+e2jF9Qa7//dVBceFZIyzS6ZvjaIyRbdPRu0KOonwa0o2LeZ5SStBqgKfRIjax7a qire1/LV4WkCUEdmny6ZTYmXzmtH+VGDGZaYqO+hVSaaLHLNAUME0L9mYN/wkYyZzDW3 3q4sus8efVI2vgbTiTIkH3Nyg3azO/S1QLg0mmKwcxspowHncVIVV+zb4TfAueYTonCj yf+g== X-Gm-Message-State: AO0yUKVBcsLe8kTAtXES6avBTGQsj5u/mRjEjPqvcsXsNO2Xg875dxU6 rVcay9MGCvJ/NyfGfWeLD7BH5OnN5jYHEgm0 X-Received: by 2002:adf:b101:0:b0:2bf:bf27:2dd2 with SMTP id l1-20020adfb101000000b002bfbf272dd2mr7649087wra.45.1674842133664; Fri, 27 Jan 2023 09:55:33 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id l13-20020adff48d000000b002366e3f1497sm4545089wro.6.2023.01.27.09.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 09:55:33 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 23/23] target/arm: Enable FEAT_FGT on '-cpu max' Date: Fri, 27 Jan 2023 17:55:07 +0000 Message-Id: <20230127175507.2895013-24-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127175507.2895013-1-peter.maydell@linaro.org> References: <20230127175507.2895013-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Update the ID registers for TCG's '-cpu max' to report the presence of FEAT_FGT Fine-Grained Traps support. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- docs/system/arm/emulation.rst | 1 + target/arm/cpu64.c | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/system/arm/emulation.rst b/docs/system/arm/emulation.rst index b33d7c28dc1..c76555f51a7 100644 --- a/docs/system/arm/emulation.rst +++ b/docs/system/arm/emulation.rst @@ -28,6 +28,7 @@ the following architecture extensions: - FEAT_ETS (Enhanced Translation Synchronization) - FEAT_EVT (Enhanced Virtualization Traps) - FEAT_FCMA (Floating-point complex number instructions) +- FEAT_FGT (Fine-Grained Traps) - FEAT_FHM (Floating-point half-precision multiplication instructions) - FEAT_FP16 (Half-precision floating-point data processing) - FEAT_FRINTTS (Floating-point to integer instructions) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 0e021960fb5..4066950da15 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -1224,6 +1224,7 @@ static void aarch64_max_initfn(Object *obj) t = FIELD_DP64(t, ID_AA64MMFR0, TGRAN16_2, 2); /* 16k stage2 supported */ t = FIELD_DP64(t, ID_AA64MMFR0, TGRAN64_2, 2); /* 64k stage2 supported */ t = FIELD_DP64(t, ID_AA64MMFR0, TGRAN4_2, 2); /* 4k stage2 supported */ + t = FIELD_DP64(t, ID_AA64MMFR0, FGT, 1); /* FEAT_FGT */ cpu->isar.id_aa64mmfr0 = t; t = cpu->isar.id_aa64mmfr1;