[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 08/25] target/arm: Enable FEAT_EBF16 in the "max" CPU
From: |
Peter Maydell |
Subject: |
[PULL 08/25] target/arm: Enable FEAT_EBF16 in the "max" CPU |
Date: |
Thu, 5 Sep 2024 14:00:43 +0100 |
Now that we've implemented the required behaviour for FEAT_EBF16, we
can enable it for the "max" CPU type, list it in our documentation,
and delete a TODO comment about it being missing.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
docs/system/arm/emulation.rst | 1 +
target/arm/tcg/cpu64.c | 4 ++--
target/arm/tcg/translate-sme.c | 1 -
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/system/arm/emulation.rst b/docs/system/arm/emulation.rst
index 3ab6e726679..35f52a54b1c 100644
--- a/docs/system/arm/emulation.rst
+++ b/docs/system/arm/emulation.rst
@@ -45,6 +45,7 @@ the following architecture extensions:
- FEAT_DotProd (Advanced SIMD dot product instructions)
- FEAT_DoubleFault (Double Fault Extension)
- FEAT_E0PD (Preventing EL0 access to halves of address maps)
+- FEAT_EBF16 (AArch64 Extended BFloat16 instructions)
- FEAT_ECV (Enhanced Counter Virtualization)
- FEAT_EL0 (Support for execution at EL0)
- FEAT_EL1 (Support for execution at EL1)
diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c
index fe232eb3069..79258a7c928 100644
--- a/target/arm/tcg/cpu64.c
+++ b/target/arm/tcg/cpu64.c
@@ -1160,7 +1160,7 @@ void aarch64_max_tcg_initfn(Object *obj)
t = FIELD_DP64(t, ID_AA64ISAR1, FRINTTS, 1); /* FEAT_FRINTTS */
t = FIELD_DP64(t, ID_AA64ISAR1, SB, 1); /* FEAT_SB */
t = FIELD_DP64(t, ID_AA64ISAR1, SPECRES, 1); /* FEAT_SPECRES */
- t = FIELD_DP64(t, ID_AA64ISAR1, BF16, 1); /* FEAT_BF16 */
+ t = FIELD_DP64(t, ID_AA64ISAR1, BF16, 2); /* FEAT_BF16, FEAT_EBF16 */
t = FIELD_DP64(t, ID_AA64ISAR1, DGH, 1); /* FEAT_DGH */
t = FIELD_DP64(t, ID_AA64ISAR1, I8MM, 1); /* FEAT_I8MM */
cpu->isar.id_aa64isar1 = t;
@@ -1244,7 +1244,7 @@ void aarch64_max_tcg_initfn(Object *obj)
t = FIELD_DP64(t, ID_AA64ZFR0, SVEVER, 1);
t = FIELD_DP64(t, ID_AA64ZFR0, AES, 2); /* FEAT_SVE_PMULL128 */
t = FIELD_DP64(t, ID_AA64ZFR0, BITPERM, 1); /* FEAT_SVE_BitPerm */
- t = FIELD_DP64(t, ID_AA64ZFR0, BFLOAT16, 1); /* FEAT_BF16 */
+ t = FIELD_DP64(t, ID_AA64ZFR0, BFLOAT16, 2); /* FEAT_BF16, FEAT_EBF16 */
t = FIELD_DP64(t, ID_AA64ZFR0, SHA3, 1); /* FEAT_SVE_SHA3 */
t = FIELD_DP64(t, ID_AA64ZFR0, SM4, 1); /* FEAT_SVE_SM4 */
t = FIELD_DP64(t, ID_AA64ZFR0, I8MM, 1); /* FEAT_I8MM */
diff --git a/target/arm/tcg/translate-sme.c b/target/arm/tcg/translate-sme.c
index 3ceb32e8bd9..01ece570164 100644
--- a/target/arm/tcg/translate-sme.c
+++ b/target/arm/tcg/translate-sme.c
@@ -362,7 +362,6 @@ TRANS_FEAT(FMOPA_s, aa64_sme, do_outprod_fpst, a,
TRANS_FEAT(FMOPA_d, aa64_sme_f64f64, do_outprod_fpst, a,
MO_64, FPST_FPCR, gen_helper_sme_fmopa_d)
-/* TODO: FEAT_EBF16 */
TRANS_FEAT(BFMOPA, aa64_sme, do_outprod_env, a, MO_32, gen_helper_sme_bfmopa)
TRANS_FEAT(SMOPA_s, aa64_sme, do_outprod, a, MO_32, gen_helper_sme_smopa_s)
--
2.34.1
- [PULL 09/25] accel/tcg: Remove dead code from rr_cpu_thread_fn(), (continued)
- [PULL 09/25] accel/tcg: Remove dead code from rr_cpu_thread_fn(), Peter Maydell, 2024/09/05
- [PULL 07/25] target/arm: Implement FPCR.EBF=1 semantics for bfdotadd(), Peter Maydell, 2024/09/05
- [PULL 11/25] hw/arm/smmuv3: Update comment documenting "stage" property, Peter Maydell, 2024/09/05
- [PULL 14/25] hw/misc/xlnx-versal-cfu: destroy fifo in finalize, Peter Maydell, 2024/09/05
- [PULL 10/25] hw: add compat machines for 9.2, Peter Maydell, 2024/09/05
- [PULL 13/25] hw/arm/sbsa-ref: Use two-stage SMMU, Peter Maydell, 2024/09/05
- [PULL 04/25] target/arm: Pass env pointer through to gvec_bfdot_idx helper, Peter Maydell, 2024/09/05
- [PULL 16/25] hw/nvram/xlnx-bbram: Call register_finalize_block, Peter Maydell, 2024/09/05
- [PULL 17/25] hw/nvram/xlnx-zynqmp-efuse: Call register_finalize_block, Peter Maydell, 2024/09/05
- [PULL 23/25] hw/arm/boot: Report error msg if loading elf/dtb failed, Peter Maydell, 2024/09/05
- [PULL 08/25] target/arm: Enable FEAT_EBF16 in the "max" CPU,
Peter Maydell <=
- [PULL 02/25] target/arm: Pass env pointer through to sme_bfmopa helper, Peter Maydell, 2024/09/05
- [PULL 19/25] hm/nvram/xlnx-versal-efuse-ctrl: Call register_finalize_block, Peter Maydell, 2024/09/05
- [PULL 22/25] hw/arm/xilinx_zynq: Enable Security Extensions, Peter Maydell, 2024/09/05
- [PULL 25/25] platform-bus: fix refcount leak, Peter Maydell, 2024/09/05
- [PULL 18/25] hw/misc/xlnx-versal-trng: Call register_finalize_block, Peter Maydell, 2024/09/05
- [PULL 20/25] hw/arm/sbsa-ref: Don't leak string in sbsa_fdt_add_gic_node(), Peter Maydell, 2024/09/05
- [PULL 21/25] target/arm: Correct names of VFP VFNMA and VFNMS insns, Peter Maydell, 2024/09/05
- [PULL 15/25] hw/misc/xlnx-versal-trng: Free s->prng in finalize, not unrealize, Peter Maydell, 2024/09/05
- [PULL 24/25] hw/arm/boot: Explain why load_elf_hdr() error is ignored, Peter Maydell, 2024/09/05
- Re: [PULL 00/25] target-arm queue, Peter Maydell, 2024/09/06