mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
target/arm: Define an aa32_pmu_8_1 isar feature test function
Instead of open-coding a check on the ID_DFR0 PerfMon ID register field, create a standardly-named isar_feature for "does AArch32 have a v8.1 PMUv3" and use it. This entails moving the id_dfr0 field into the ARMISARegisters struct. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20200214175116.9164-9-peter.maydell@linaro.org
This commit is contained in:
parent
d52c061e54
commit
a617953855
5 changed files with 28 additions and 22 deletions
|
@ -1227,7 +1227,7 @@ static uint32_t nvic_readl(NVICState *s, uint32_t offset, MemTxAttrs attrs)
|
|||
case 0xd44: /* PFR1. */
|
||||
return cpu->id_pfr1;
|
||||
case 0xd48: /* DFR0. */
|
||||
return cpu->id_dfr0;
|
||||
return cpu->isar.id_dfr0;
|
||||
case 0xd4c: /* AFR0. */
|
||||
return cpu->id_afr0;
|
||||
case 0xd50: /* MMFR0. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue