summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Maydell2020-09-10 19:38:53 +0200
committerPeter Maydell2020-10-01 16:31:00 +0200
commitd20c3ebda2972255e67c0a07368ac37f37a16c04 (patch)
treecf28d4e6e863388f9bc7744cd5e0a23a07da8897 /include
parenttarget/arm: Move id_pfr0, id_pfr1 into ARMISARegisters (diff)
downloadqemu-d20c3ebda2972255e67c0a07368ac37f37a16c04.tar.gz
qemu-d20c3ebda2972255e67c0a07368ac37f37a16c04.tar.xz
qemu-d20c3ebda2972255e67c0a07368ac37f37a16c04.zip
hw/intc/armv7m_nvic: Only show ID register values for Main Extension CPUs
M-profile CPUs only implement the ID registers as guest-visible if the CPU implements the Main Extension (all our current CPUs except the Cortex-M0 do). Currently we handle this by having the Cortex-M0 leave the ID register values in the ARMCPU struct as zero, but this conflicts with our design decision to make QEMU behaviour be keyed off ID register fields wherever possible. Explicitly code the ID registers in the NVIC to return 0 if the Main Extension is not implemented, so we can make the M0 model set the ARMCPU struct fields to obtain the correct behaviour without those values becoming guest-visible. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20200910173855.4068-4-peter.maydell@linaro.org
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions