aboutsummaryrefslogtreecommitdiff
path: root/hw/intc
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2025-07-01 15:08:28 +0100
committerPeter Maydell <peter.maydell@linaro.org>2025-07-01 15:08:28 +0100
commit33801d9bd0947042f223966bbb04f7528e1443f2 (patch)
tree760a5ec4414816869d1aefabf56ea5cd7006ff3a /hw/intc
parent30ca689900c8c47bc4ca46be00ec9a7f1a78ccda (diff)
downloadqemu-33801d9bd0947042f223966bbb04f7528e1443f2.zip
qemu-33801d9bd0947042f223966bbb04f7528e1443f2.tar.gz
qemu-33801d9bd0947042f223966bbb04f7528e1443f2.tar.bz2
arm/cpu: Store id_dfr0/1 into the idregs array
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Sebastian Ott <sebott@redhat.com> Signed-off-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com> Message-id: 20250617153931.1330449-11-cohuck@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/intc')
-rw-r--r--hw/intc/armv7m_nvic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/armv7m_nvic.c b/hw/intc/armv7m_nvic.c
index 330205f..2566dd6 100644
--- a/hw/intc/armv7m_nvic.c
+++ b/hw/intc/armv7m_nvic.c
@@ -1274,7 +1274,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->isar.id_dfr0;
+ return GET_IDREG(isar, ID_DFR0);
case 0xd4c: /* AFR0. */
if (!arm_feature(&cpu->env, ARM_FEATURE_M_MAIN)) {
goto bad_offset;