Skip to contentSkip to conversation

target/arm: Correct ID_AA64ISAR1_EL1 value for neoverse-v1

PATCH In review Peter Maydell 4 participants 4 messages Sep 17, 2024 – Sep 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/arm: Correct ID_AA64ISAR1_EL1 value for neoverse-v1

The Neoverse-V1 TRM is a bit confused about the layout of the ID_AA64ISAR1_EL1 register, and so its table 3-6 has the wrong value for this ID register. Trust instead section 3.2.74's list of which fields are set.

This means that we stop incorrectly reporting FEAT_XS as present, and now report the presence of FEAT_BF16.

---
 target/arm/tcg/cpu64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/arm/tcg/cpu64.c +1 -1
index b9f34f044d0..01689208286 100644
@@ -677,7 +677,7 @@ static void aarch64_neoverse_v1_initfn(Object *obj)
     cpu->isar.id_aa64dfr0  = 0x000001f210305519ull;
     cpu->isar.id_aa64dfr1 = 0x00000000;
     cpu->isar.id_aa64isar0 = 0x1011111110212120ull; /* with FEAT_RNG */
-    cpu->isar.id_aa64isar1 = 0x0111000001211032ull;
+    cpu->isar.id_aa64isar1 = 0x0011100001211032ull;
     cpu->isar.id_aa64mmfr0 = 0x0000000000101125ull;
     cpu->isar.id_aa64mmfr1 = 0x0000000010212122ull;
     cpu->isar.id_aa64mmfr2 = 0x0220011102101011ull;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Peter Maydell

The Neoverse-V1 TRM is a bit confused about the layout of the ID_AA64ISAR1_EL1 register, and so its table 3-6 has the wrong value for this ID register. Trust instead section 3.2.74's list of which fields are set.

This means that we stop incorrectly reporting FEAT_XS as present, and now report the presence of FEAT_BF16.

Quoted 6 lines
---
  target/arm/tcg/cpu64.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

r~

#2 lore raw
In reply to Peter Maydell

W dniu 17.09.2024 o 18:13, Peter Maydell pisze:

Quoted 20 lines

The Neoverse-V1 TRM is a bit confused about the layout of the ID_AA64ISAR1_EL1 register, and so its table 3-6 has the wrong value for this ID register. Trust instead section 3.2.74's list of which fields are set.

This means that we stop incorrectly reporting FEAT_XS as present, and now report the presence of FEAT_BF16.

---
  target/arm/tcg/cpu64.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/arm/tcg/cpu64.c +0 -0
index b9f34f044d0..01689208286 100644

target/arm/tcg/cpu64.c static void aarch64_neoverse_v1_initfn(Object *obj) · line 683

Quoted 8 lines
target/arm/tcg/cpu64.c +1 -1
@@ -677,7 +677,7 @@ static void aarch64_neoverse_v1_initfn(Object *obj)
      cpu->isar.id_aa64dfr0  = 0x000001f210305519ull;
      cpu->isar.id_aa64dfr1 = 0x00000000;
      cpu->isar.id_aa64isar0 = 0x1011111110212120ull; /* with FEAT_RNG */
-    cpu->isar.id_aa64isar1 = 0x0111000001211032ull;
+    cpu->isar.id_aa64isar1 = 0x0011100001211032ull;
      cpu->isar.id_aa64mmfr0 = 0x0000000000101125ull;
      cpu->isar.id_aa64mmfr1 = 0x0000000010212122ull;
      cpu->isar.id_aa64mmfr2 = 0x0220011102101011ull;

I think that it would nice to have it backported to stable branches. It applies to stable-8.1 and above.

In master it is 8676007eff04bb4e454bcdf92fab3f855bcc59b3 commit.

#3 lore raw
Quoted 10 lines · Marcin Juszkiewicz

W dniu 17.09.2024 o 18:13, Peter Maydell pisze:

Quoted 9 lines

The Neoverse-V1 TRM is a bit confused about the layout of the ID_AA64ISAR1_EL1 register, and so its table 3-6 has the wrong value for this ID register.  Trust instead section 3.2.74's list of which fields are set.

This means that we stop incorrectly reporting FEAT_XS as present, and now report the presence of FEAT_BF16.

...

Quoted 1 line

I think that it would nice to have it backported to stable branches. It applies to stable-8.1 and above.

Since it has Cc: qemu-stable@, I already picked it up for 8.2, 9.0 and 9.1.

Quoted 1 line

In master it is 8676007eff04bb4e454bcdf92fab3f855bcc59b3 commit.

Thank you!

/mjt