From patchwork Mon Jan 30 18:24:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 648560 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp1307453pva; Mon, 30 Jan 2023 10:27:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXsP5wK47MalezvDH7IcCCq39KH0wJRMdS7N/8wda6RYrvq+F2Rptu8HJ1n80uxqtQ0AN4YD X-Received: by 2002:a05:622a:a09:b0:3b6:309e:dfdb with SMTP id bv9-20020a05622a0a0900b003b6309edfdbmr77504694qtb.22.1675103255283; Mon, 30 Jan 2023 10:27:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675103255; cv=none; d=google.com; s=arc-20160816; b=BzeNg//r5LzaObL9J1zbgs7pYIwdrBoEvklwY/yJ3yqLzDlfBfdqN7szl1A7rDK4eb kA3V8F0aEGEgpEMuUuL+ftMrA9yXfBd1Wa3VopJBIpTi2qMrtZHH95TpEjLQkDR9uqH8 c2qbT6qouA2tSM0c2MrhH8Pt+w6qP4Kc9lfy9Uenugw+yGF4fhFEnIEF4brr95nznvPN 79PBPjhGvrbHzCQQLVvvhYtmIb5ysoZX2mqGzCeDbl6Hh/xwIzTf+ZJBNXN60H7TWPeu +P0zaRapC6CCubtRH5LDkxTgtzWnzaQWoWlDwXfezshoSKtTw7/IkTdIuIzMkHt6nnyr Wr+g== 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=Vj+8R3eAUWvoTvt+rtdp3a8e8+qsFowbhWMk+Fsc6nE=; b=KT/oq+N2/8cpi5XbqTdFi6UKegbY8yzh+gUPxoB2jPt5zmIHcddLRr2kCFaWHQWO32 lv23safYN9pjHu1/RA4/9ku968Ja8juv76PgMbWoQUOqGw9YZEKDvdhwFfNNYjaqR73r vkyAt/Xobnpo5VT0sHnqAuzlIZcxeBj+aTpmkHW0oocwrhKsHRQhCrscFEJ3E3+LAluZ 3Tk3SRX2lZMizdlzhqCetIKbp8JgiiAf/h+KjDxBSrlFPqC7b/O5Kcv0F2f4RKv1FMc4 pX2hqeAhJFA+JyKsgWmf06yePaRjTcrSMC+jHTLLovkNnBzTbu7W46MXUJ/lt6ETvdbG ojbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JRELcrA3; 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 x14-20020a05622a000e00b003b68b54bf83si7021425qtw.446.2023.01.30.10.27.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jan 2023 10:27:35 -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=JRELcrA3; 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 1pMYqU-0001Fk-G8; Mon, 30 Jan 2023 13:25:34 -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 1pMYqP-0001CQ-UP for qemu-devel@nongnu.org; Mon, 30 Jan 2023 13:25:30 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMYqL-0008R5-AC for qemu-devel@nongnu.org; Mon, 30 Jan 2023 13:25:29 -0500 Received: by mail-wr1-x431.google.com with SMTP id m7so11984239wru.8 for ; Mon, 30 Jan 2023 10:25:24 -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=Vj+8R3eAUWvoTvt+rtdp3a8e8+qsFowbhWMk+Fsc6nE=; b=JRELcrA3NnnBuZvuy/RVQCm1kH2JcvOT5mju9FW6IjVjmBBUd1PPDPDd8E28Prp3sL 82ruCcn6Yx/WTuCIbNVMdd9oStM8ehSCkyP6uZkxsfBmPj7L5a8l3BrC+1eXoxQYOgjc VjDmUddULcDPwjgdXhBPjHs0nOItDUo8kEoSka71ZvxnO86ccvm0Xyq6jaCRzWepy1E/ DCrcCEYMXSC0n3buqUaP7ykrcXLa5H5UphbuLUXaJFavgcwR+gXyTe1KJ0xDxBTX4znq 2LXp5U0ebIiu/v213y1B4DcJvFJdsOvf7WtL/PUtwhi8pY4FscesA253oamxqM3Agd97 Tl4w== 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=Vj+8R3eAUWvoTvt+rtdp3a8e8+qsFowbhWMk+Fsc6nE=; b=T4G0fnBUv+hZyFK7liQqJdDeFQjGYGyB7iwlpAseqkIBsQ1aG8hu2EPjWb5O+4cXRY kulXyJSOPftBGv1C+gc1UCnn/4wSa1p7ZJYhod4JPy4e7TJcuO6iqS4F4ghE+LHvaWnJ tA/bAzFIJLSqFMIMC1oA0PLh7gO+i6DQjy7De5P2E6HArO/LQybDsQhZOdTxPIGz5kjD XyD9eawZqIlJE7/jP07TKNfzUJSePEqf3hbzkY26+7pYnCYaD/eb3F9LpiAqmTO5qnXS y+9VfUt9b1cdjwXNR9kDqgY3RvnCuMJrdBTArxVZPfA7oQXQ8Qt/NR0LSlzAOIUWkTkg hmeQ== X-Gm-Message-State: AO0yUKWQ/pRaazU6ALhFB0OIL4NA1RcaPMrpfShqBOBJU9y13eZtjxSO 98+xn3S9cbX+BxSXzWgO0B+YZmKnbn4ykVyR X-Received: by 2002:adf:f14a:0:b0:2bf:cd9f:37f9 with SMTP id y10-20020adff14a000000b002bfcd9f37f9mr11830193wro.4.1675103124529; Mon, 30 Jan 2023 10:25:24 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id l16-20020adffe90000000b002b8fe58d6desm12245202wrr.62.2023.01.30.10.25.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 10:25:23 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH v2 23/23] target/arm: Enable FEAT_FGT on '-cpu max' Date: Mon, 30 Jan 2023 18:24:59 +0000 Message-Id: <20230130182459.3309057-24-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230130182459.3309057-1-peter.maydell@linaro.org> References: <20230130182459.3309057-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.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=ham 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 Message-id: 20230127175507.2895013-24-peter.maydell@linaro.org --- 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;