diff options
author | Cornelia Huck <cohuck@redhat.com> | 2025-07-04 16:19:23 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2025-07-10 09:13:03 +0100 |
commit | 1fea334eeed2b747d1c91ee0099401595ba697f8 (patch) | |
tree | 30f63008342dc128f7b8cba7b428140abf0e50b0 /hw/intc | |
parent | 67fe3c8a73876ff727f301a306a03eb3230b58ee (diff) | |
download | qemu-1fea334eeed2b747d1c91ee0099401595ba697f8.zip qemu-1fea334eeed2b747d1c91ee0099401595ba697f8.tar.gz qemu-1fea334eeed2b747d1c91ee0099401595ba697f8.tar.bz2 |
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 'hw/intc')
-rw-r--r-- | hw/intc/armv7m_nvic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/armv7m_nvic.c b/hw/intc/armv7m_nvic.c index 6d85720..d93e593 100644 --- a/hw/intc/armv7m_nvic.c +++ b/hw/intc/armv7m_nvic.c @@ -1279,7 +1279,7 @@ static uint32_t nvic_readl(NVICState *s, uint32_t offset, MemTxAttrs attrs) if (!arm_feature(&cpu->env, ARM_FEATURE_M_MAIN)) { goto bad_offset; } - return cpu->id_afr0; + return GET_IDREG(isar, ID_AFR0); case 0xd50: /* MMFR0. */ if (!arm_feature(&cpu->env, ARM_FEATURE_M_MAIN)) { goto bad_offset; |