From nobody Mon Feb 9 13:24:38 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=fujitsu.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1628148755596319.8045727370836; Thu, 5 Aug 2021 00:32:35 -0700 (PDT) Received: from localhost ([::1]:52528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBXrm-0006RA-Et for importer@patchew.org; Thu, 05 Aug 2021 03:32:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBXqG-0002nd-Al; Thu, 05 Aug 2021 03:31:00 -0400 Received: from esa3.hc1455-7.c3s2.iphmx.com ([207.54.90.49]:62941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBXqE-00047R-Fn; Thu, 05 Aug 2021 03:31:00 -0400 Received: from unknown (HELO oym-r4.gw.nic.fujitsu.com) ([210.162.30.92]) by esa3.hc1455-7.c3s2.iphmx.com with ESMTP; 05 Aug 2021 16:30:54 +0900 Received: from oym-m4.gw.nic.fujitsu.com (oym-nat-oym-m4.gw.nic.fujitsu.com [192.168.87.61]) by oym-r4.gw.nic.fujitsu.com (Postfix) with ESMTP id 318EDE0AE4; Thu, 5 Aug 2021 16:30:52 +0900 (JST) Received: from yto-om2.fujitsu.com (yto-om2.o.css.fujitsu.com [10.128.89.163]) by oym-m4.gw.nic.fujitsu.com (Postfix) with ESMTP id 5AFAD215CF0; Thu, 5 Aug 2021 16:30:51 +0900 (JST) Received: from localhost.localdomain (n3235113.np.ts.nmh.cs.fujitsu.co.jp [10.123.235.113]) by yto-om2.fujitsu.com (Postfix) with ESMTP id 2A6B0400C23BF; Thu, 5 Aug 2021 16:30:51 +0900 (JST) IronPort-SDR: liusKCeu5m/oS9P4NSVbyYdBVZKL0Eql8PnjxY2npM1o103DLp9YqjIDn3RYyT3aZvmXAojFLC WuSGFGK83I47NfvoAyyPbPWMqLvJa8SUB7rgABNoV53SjFG2UGSQlchHVUBU2tDZ3zeWPiXRXB NJB1+MjuWkbGGYQaxCjQm6F3xXqK4hUhP3dkbv4jsztag63RRxJ7qUVoFE5C5R+SvMiTnLyNKP i8gt3kl1RMd/ZZxxwlN2Gjzj4mzt0UA/SZ1wSTJD0RK0z7xOl1EOIqQSupqyArz4LrYzb/wDwr DkfHFfd3vUcpoAdKAdzODOBy X-IronPort-AV: E=McAfee;i="6200,9189,10066"; a="39160696" X-IronPort-AV: E=Sophos;i="5.84,296,1620658800"; d="scan'208";a="39160696" From: Shuuichirou Ishii To: peter.maydell@linaro.org, qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH v3 1/3] target-arm: cpu64: Add support for Fujitsu A64FX Date: Thu, 5 Aug 2021 16:30:43 +0900 Message-Id: <20210805073045.916622-2-ishii.shuuichir@fujitsu.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210805073045.916622-1-ishii.shuuichir@fujitsu.com> References: <20210805073045.916622-1-ishii.shuuichir@fujitsu.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.54.90.49; envelope-from=ishii.shuuichir@fujitsu.com; helo=esa3.hc1455-7.c3s2.iphmx.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ishii.shuuichir@fujitsu.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZM-MESSAGEID: 1628148757341100001 Content-Type: text/plain; charset="utf-8" Add a definition for the Fujitsu A64FX processor. The A64FX processor does not implement the AArch32 Execution state, so there are no associated AArch32 Identification registers. Signed-off-by: Shuuichirou Ishii --- target/arm/cpu64.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index c690318a9b..612644941b 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -847,10 +847,54 @@ static void aarch64_max_initfn(Object *obj) cpu_max_set_sve_max_vq, NULL, NULL); } =20 +static void aarch64_a64fx_initfn(Object *obj) +{ + ARMCPU *cpu =3D ARM_CPU(obj); + + cpu->dtb_compatible =3D "arm,a64fx"; + set_feature(&cpu->env, ARM_FEATURE_V8); + set_feature(&cpu->env, ARM_FEATURE_NEON); + set_feature(&cpu->env, ARM_FEATURE_GENERIC_TIMER); + set_feature(&cpu->env, ARM_FEATURE_AARCH64); + set_feature(&cpu->env, ARM_FEATURE_EL2); + set_feature(&cpu->env, ARM_FEATURE_EL3); + set_feature(&cpu->env, ARM_FEATURE_PMU); + cpu->midr =3D 0x461f0010; + cpu->revidr =3D 0x00000000; + cpu->ctr =3D 86668006; + cpu->reset_sctlr =3D 0x30000180; + cpu->isar.id_aa64pfr0 =3D 0x0000000101111111; /* No RAS Extensions */ + cpu->isar.id_aa64pfr1 =3D 0x0000000000000000; + cpu->isar.id_aa64dfr0 =3D 0x0000000010305408; + cpu->isar.id_aa64dfr1 =3D 0x0000000000000000; + cpu->id_aa64afr0 =3D 0x0000000000000000; + cpu->id_aa64afr1 =3D 0x0000000000000000; + cpu->isar.id_aa64mmfr0 =3D 0x0000000000001122; + cpu->isar.id_aa64mmfr1 =3D 0x0000000011212100; + cpu->isar.id_aa64mmfr2 =3D 0x0000000000001011; + cpu->isar.id_aa64isar0 =3D 0x0000000010211120; + cpu->isar.id_aa64isar1 =3D 0x0000000000010001; + cpu->isar.id_aa64zfr0 =3D 0x0000000000000000; + cpu->clidr =3D 0x0000000080000023; + cpu->ccsidr[0] =3D 0x7007e01c; /* 64KB L1 dcache */ + cpu->ccsidr[1] =3D 0x2007e01c; /* 64KB L1 icache */ + cpu->ccsidr[2] =3D 0x70ffe07c; /* 8MB L2 cache */ + cpu->dcz_blocksize =3D 6; /* 256 bytes */ + cpu->gic_num_lrs =3D 4; + cpu->gic_vpribits =3D 5; + cpu->gic_vprebits =3D 5; + /* TODO: Add A64FX specific HPC extension registers */ + + aarch64_add_sve_properties(obj); + object_property_add(obj, "sve-max-vq", "uint32", cpu_max_get_sve_max_v= q, + cpu_max_set_sve_max_vq, NULL, NULL); +} + static const ARMCPUInfo aarch64_cpus[] =3D { { .name =3D "cortex-a57", .initfn =3D aarch64_a57_initfn }, { .name =3D "cortex-a53", .initfn =3D aarch64_a53_initfn }, { .name =3D "cortex-a72", .initfn =3D aarch64_a72_initfn }, + { .name =3D "a64fx", .initfn =3D aarch64_a64fx_initfn }, { .name =3D "max", .initfn =3D aarch64_max_initfn }, }; =20 --=20 2.27.0 From nobody Mon Feb 9 13:24:38 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=fujitsu.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1628148751443656.0564316940433; Thu, 5 Aug 2021 00:32:31 -0700 (PDT) Received: from localhost ([::1]:52110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBXri-0006AO-6U for importer@patchew.org; Thu, 05 Aug 2021 03:32:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBXqF-0002nH-89; Thu, 05 Aug 2021 03:30:59 -0400 Received: from esa4.hc1455-7.c3s2.iphmx.com ([68.232.139.117]:21527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBXqD-00048Q-8K; Thu, 05 Aug 2021 03:30:59 -0400 Received: from unknown (HELO oym-r2.gw.nic.fujitsu.com) ([210.162.30.90]) by esa4.hc1455-7.c3s2.iphmx.com with ESMTP; 05 Aug 2021 16:30:54 +0900 Received: from oym-m4.gw.nic.fujitsu.com (oym-nat-oym-m4.gw.nic.fujitsu.com [192.168.87.61]) by oym-r2.gw.nic.fujitsu.com (Postfix) with ESMTP id BEEA1E6806; Thu, 5 Aug 2021 16:30:53 +0900 (JST) Received: from yto-om2.fujitsu.com (yto-om2.o.css.fujitsu.com [10.128.89.163]) by oym-m4.gw.nic.fujitsu.com (Postfix) with ESMTP id DCF1A166AE8; Thu, 5 Aug 2021 16:30:52 +0900 (JST) Received: from localhost.localdomain (n3235113.np.ts.nmh.cs.fujitsu.co.jp [10.123.235.113]) by yto-om2.fujitsu.com (Postfix) with ESMTP id A4613400C23B9; Thu, 5 Aug 2021 16:30:52 +0900 (JST) IronPort-SDR: VEchjHVpUwrjDwg6yU71jlMCzRh8bDNeFVCnbqYY5S3XReIkaHB9VLzxcGz9n33VmjJ7UK2D86 ge5nRGdvV1/+Kst/uWJNZfDpRnaHDP+5st6fyfhrRDc/hPesS7KlYDcuN/Yjqpu35D8S760/su rtrlrDlue3wnHeoPv4ko9qg8C7aADHs7gZLUy7ibHQMw76pCl/1niIf0Woox+GlkAZrzU2hSlI pmOVtpLAHQM2LfM1SpXPAahyoUVg2LNa4Pw7iEdlMVZ60MRKB3qRS7LSBfTeqeD73mMtFbRYKI XPiKutoch6wviC4ZNz4AdRJK X-IronPort-AV: E=McAfee;i="6200,9189,10066"; a="39050101" X-IronPort-AV: E=Sophos;i="5.84,296,1620658800"; d="scan'208";a="39050101" From: Shuuichirou Ishii To: peter.maydell@linaro.org, qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH v3 2/3] hw/arm/virt: target-arm: Add A64FX processor support to virt machine Date: Thu, 5 Aug 2021 16:30:44 +0900 Message-Id: <20210805073045.916622-3-ishii.shuuichir@fujitsu.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210805073045.916622-1-ishii.shuuichir@fujitsu.com> References: <20210805073045.916622-1-ishii.shuuichir@fujitsu.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=68.232.139.117; envelope-from=ishii.shuuichir@fujitsu.com; helo=esa4.hc1455-7.c3s2.iphmx.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ishii.shuuichir@fujitsu.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZM-MESSAGEID: 1628148753131100003 Content-Type: text/plain; charset="utf-8" Add -cpu a64fx to use A64FX processor when -machine virt option is specifie= d. In addition, add a64fx to the Supported guest CPU types in the virt.rst doc= ument. Signed-off-by: Shuuichirou Ishii --- docs/system/arm/virt.rst | 1 + hw/arm/virt.c | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/system/arm/virt.rst b/docs/system/arm/virt.rst index 59acf0eeaf..850787495b 100644 --- a/docs/system/arm/virt.rst +++ b/docs/system/arm/virt.rst @@ -55,6 +55,7 @@ Supported guest CPU types: - ``cortex-a53`` (64-bit) - ``cortex-a57`` (64-bit) - ``cortex-a72`` (64-bit) +- ``a64fx`` (64-bit) - ``host`` (with KVM only) - ``max`` (same as ``host`` for KVM; best possible emulation with TCG) =20 diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 81eda46b0b..10286d3fd6 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -200,6 +200,7 @@ static const char *valid_cpus[] =3D { ARM_CPU_TYPE_NAME("cortex-a53"), ARM_CPU_TYPE_NAME("cortex-a57"), ARM_CPU_TYPE_NAME("cortex-a72"), + ARM_CPU_TYPE_NAME("a64fx"), ARM_CPU_TYPE_NAME("host"), ARM_CPU_TYPE_NAME("max"), }; --=20 2.27.0 From nobody Mon Feb 9 13:24:38 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=fujitsu.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1628148742237802.952991641063; Thu, 5 Aug 2021 00:32:22 -0700 (PDT) Received: from localhost ([::1]:51242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBXrZ-0005bP-2Q for importer@patchew.org; Thu, 05 Aug 2021 03:32:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBXqH-0002om-Dv; Thu, 05 Aug 2021 03:31:01 -0400 Received: from esa10.hc1455-7.c3s2.iphmx.com ([139.138.36.225]:38058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBXqF-0004AL-PG; Thu, 05 Aug 2021 03:31:01 -0400 Received: from unknown (HELO yto-r3.gw.nic.fujitsu.com) ([218.44.52.219]) by esa10.hc1455-7.c3s2.iphmx.com with ESMTP; 05 Aug 2021 16:30:55 +0900 Received: from yto-m1.gw.nic.fujitsu.com (yto-nat-yto-m1.gw.nic.fujitsu.com [192.168.83.64]) by yto-r3.gw.nic.fujitsu.com (Postfix) with ESMTP id 4B7246DAA0; Thu, 5 Aug 2021 16:30:55 +0900 (JST) Received: from yto-om2.fujitsu.com (yto-om2.o.css.fujitsu.com [10.128.89.163]) by yto-m1.gw.nic.fujitsu.com (Postfix) with ESMTP id 953B5E0B92; Thu, 5 Aug 2021 16:30:54 +0900 (JST) Received: from localhost.localdomain (n3235113.np.ts.nmh.cs.fujitsu.co.jp [10.123.235.113]) by yto-om2.fujitsu.com (Postfix) with ESMTP id 6FF98400C23C7; Thu, 5 Aug 2021 16:30:54 +0900 (JST) IronPort-SDR: t7kPtLeXG7HhoOVaVEQcY1AymVc7h8VJqRroK5Cp4fMmLu3XF1/05b5Kox9Cmicf7K7Rp75x7F xHxl/d4GRUiCi3Jc872TWsuGdLSVf5jib4uk/Ih1vK2uCGknFJ4MInZuxijn7AafQG/6ZSDP8f rdKFY/C0A4lhn1fOp/6qGHADygMIvfCgSQyS29JgjbOHNovEsKD7Idtd3EF0UJ/XWSvo6fEQt+ k0rtG196sTw6qYdKSUYu2YQ2AGzPP1vg2MXFq9lyNK53uZqsyvOOJfDX1AGxPQ2WT10uYSXOW9 DoZV700RtX5fx4WqoEiZMmBG X-IronPort-AV: E=McAfee;i="6200,9189,10066"; a="27055467" X-IronPort-AV: E=Sophos;i="5.84,296,1620658800"; d="scan'208";a="27055467" From: Shuuichirou Ishii To: peter.maydell@linaro.org, qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH v3 3/3] tests/arm-cpu-features: Add A64FX processor related tests Date: Thu, 5 Aug 2021 16:30:45 +0900 Message-Id: <20210805073045.916622-4-ishii.shuuichir@fujitsu.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210805073045.916622-1-ishii.shuuichir@fujitsu.com> References: <20210805073045.916622-1-ishii.shuuichir@fujitsu.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: neutral client-ip=139.138.36.225; envelope-from=ishii.shuuichir@fujitsu.com; helo=esa10.hc1455-7.c3s2.iphmx.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ishii.shuuichir@fujitsu.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZM-MESSAGEID: 1628148743911100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Shuuichirou Ishii --- tests/qtest/arm-cpu-features.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/qtest/arm-cpu-features.c b/tests/qtest/arm-cpu-features.c index 8252b85bb8..979c6f82f8 100644 --- a/tests/qtest/arm-cpu-features.c +++ b/tests/qtest/arm-cpu-features.c @@ -472,6 +472,9 @@ static void test_query_cpu_model_expansion(const void *= data) assert_has_feature_enabled(qts, "max", "sve128"); assert_has_feature_enabled(qts, "cortex-a57", "pmu"); assert_has_feature_enabled(qts, "cortex-a57", "aarch64"); + assert_has_feature_enabled(qts, "a64fx", "pmu"); + assert_has_feature_enabled(qts, "a64fx", "aarch64"); + assert_has_feature_enabled(qts, "a64fx", "sve"); =20 sve_tests_default(qts, "max"); pauth_tests_default(qts, "max"); --=20 2.27.0