• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionf8680aaa6e5bfc6022b75157c23db7d2ea98ab11 (tree)
Time2021-05-26 00:01:44
AuthorRichard Henderson <richard.henderson@lina...>
CommiterPeter Maydell

Log Message

target/arm: Enable SVE2 and related extensions

Disable I8MM again for !have_neon during realize.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210525010358.152808-93-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Change Summary

Incremental Difference

--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -1503,6 +1503,7 @@ static void arm_cpu_realizefn(DeviceState *dev, Error **errp)
15031503
15041504 t = cpu->isar.id_aa64isar1;
15051505 t = FIELD_DP64(t, ID_AA64ISAR1, FCMA, 0);
1506+ t = FIELD_DP64(t, ID_AA64ISAR1, I8MM, 0);
15061507 cpu->isar.id_aa64isar1 = t;
15071508
15081509 t = cpu->isar.id_aa64pfr0;
@@ -1517,6 +1518,7 @@ static void arm_cpu_realizefn(DeviceState *dev, Error **errp)
15171518 u = cpu->isar.id_isar6;
15181519 u = FIELD_DP32(u, ID_ISAR6, DP, 0);
15191520 u = FIELD_DP32(u, ID_ISAR6, FHM, 0);
1521+ u = FIELD_DP32(u, ID_ISAR6, I8MM, 0);
15201522 cpu->isar.id_isar6 = u;
15211523
15221524 if (!arm_feature(env, ARM_FEATURE_M)) {
--- a/target/arm/cpu64.c
+++ b/target/arm/cpu64.c
@@ -663,6 +663,7 @@ static void aarch64_max_initfn(Object *obj)
663663 t = FIELD_DP64(t, ID_AA64ISAR1, SPECRES, 1);
664664 t = FIELD_DP64(t, ID_AA64ISAR1, FRINTTS, 1);
665665 t = FIELD_DP64(t, ID_AA64ISAR1, LRCPC, 2); /* ARMv8.4-RCPC */
666+ t = FIELD_DP64(t, ID_AA64ISAR1, I8MM, 1);
666667 cpu->isar.id_aa64isar1 = t;
667668
668669 t = cpu->isar.id_aa64pfr0;
@@ -703,6 +704,17 @@ static void aarch64_max_initfn(Object *obj)
703704 t = FIELD_DP64(t, ID_AA64MMFR2, ST, 1); /* TTST */
704705 cpu->isar.id_aa64mmfr2 = t;
705706
707+ t = cpu->isar.id_aa64zfr0;
708+ t = FIELD_DP64(t, ID_AA64ZFR0, SVEVER, 1);
709+ t = FIELD_DP64(t, ID_AA64ZFR0, AES, 2); /* PMULL */
710+ t = FIELD_DP64(t, ID_AA64ZFR0, BITPERM, 1);
711+ t = FIELD_DP64(t, ID_AA64ZFR0, SHA3, 1);
712+ t = FIELD_DP64(t, ID_AA64ZFR0, SM4, 1);
713+ t = FIELD_DP64(t, ID_AA64ZFR0, I8MM, 1);
714+ t = FIELD_DP64(t, ID_AA64ZFR0, F32MM, 1);
715+ t = FIELD_DP64(t, ID_AA64ZFR0, F64MM, 1);
716+ cpu->isar.id_aa64zfr0 = t;
717+
706718 /* Replicate the same data to the 32-bit id registers. */
707719 u = cpu->isar.id_isar5;
708720 u = FIELD_DP32(u, ID_ISAR5, AES, 2); /* AES + PMULL */
@@ -719,6 +731,7 @@ static void aarch64_max_initfn(Object *obj)
719731 u = FIELD_DP32(u, ID_ISAR6, FHM, 1);
720732 u = FIELD_DP32(u, ID_ISAR6, SB, 1);
721733 u = FIELD_DP32(u, ID_ISAR6, SPECRES, 1);
734+ u = FIELD_DP32(u, ID_ISAR6, I8MM, 1);
722735 cpu->isar.id_isar6 = u;
723736
724737 u = cpu->isar.id_pfr0;
--- a/target/arm/cpu_tcg.c
+++ b/target/arm/cpu_tcg.c
@@ -968,6 +968,7 @@ static void arm_max_initfn(Object *obj)
968968 t = FIELD_DP32(t, ID_ISAR6, FHM, 1);
969969 t = FIELD_DP32(t, ID_ISAR6, SB, 1);
970970 t = FIELD_DP32(t, ID_ISAR6, SPECRES, 1);
971+ t = FIELD_DP32(t, ID_ISAR6, I8MM, 1);
971972 cpu->isar.id_isar6 = t;
972973
973974 t = cpu->isar.mvfr1;