summary refs log tree commit diff stats
path: root/target/arm/helper.c
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2025-07-04 16:19:23 +0200
committerPeter Maydell <peter.maydell@linaro.org>2025-07-10 09:13:03 +0100
commit1fea334eeed2b747d1c91ee0099401595ba697f8 (patch)
tree30f63008342dc128f7b8cba7b428140abf0e50b0 /target/arm/helper.c
parent67fe3c8a73876ff727f301a306a03eb3230b58ee (diff)
downloadfocaccia-qemu-1fea334eeed2b747d1c91ee0099401595ba697f8.tar.gz
focaccia-qemu-1fea334eeed2b747d1c91ee0099401595ba697f8.zip
arm/cpu: store id_afr0 into the idregs array
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-id: 20250704141927.38963-2-cohuck@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/helper.c')
-rw-r--r--target/arm/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c
index b3f0d6f17a..ae6231803e 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -7809,7 +7809,7 @@ void register_cp_regs_for_features(ARMCPU *cpu)
               .opc0 = 3, .opc1 = 0, .crn = 0, .crm = 1, .opc2 = 3,
               .access = PL1_R, .type = ARM_CP_CONST,
               .accessfn = access_aa32_tid3,
-              .resetvalue = cpu->id_afr0 },
+              .resetvalue = GET_IDREG(isar, ID_AFR0)},
             { .name = "ID_MMFR0", .state = ARM_CP_STATE_BOTH,
               .opc0 = 3, .opc1 = 0, .crn = 0, .crm = 1, .opc2 = 4,
               .access = PL1_R, .type = ARM_CP_CONST,