diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2024-01-09 14:38:04 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-01-15 17:12:22 +0000 |
commit | 71e269fb7bd14b5e4b055b6978a4ab193e11ee8e (patch) | |
tree | dc3936ac5bb335bc7215bf9b1d174f7a0999374c /include/hw/misc/stm32l4x5_exti.h | |
parent | d95f260aee3ea1b12779cdede7456480ea9ea3d1 (diff) | |
download | qemu-71e269fb7bd14b5e4b055b6978a4ab193e11ee8e.zip qemu-71e269fb7bd14b5e4b055b6978a4ab193e11ee8e.tar.gz qemu-71e269fb7bd14b5e4b055b6978a4ab193e11ee8e.tar.bz2 |
target/arm: arm_pamax() no longer needs to do feature propagation
In arm_pamax(), we need to cope with the virt board calling this
function on a CPU object which has been inited but not realize.
We used to do propagation of feature-flag implications (such as
"V7VE implies LPAE") at realize, so we have some code in arm_pamax()
which manually checks for both V7VE and LPAE feature flags.
In commit b8f7959f28c4f36 we moved the feature propagation for
almost all features from realize to post-init. That means that
now when the virt board calls arm_pamax(), the feature propagation
has been done. So we can drop the manual propagation handling
and check only for the feature we actually care about, which
is ARM_FEATURE_LPAE.
Retain the comment that the virt board is calling this function
with a not completely realized CPU object, because that is a
potential beartrap for later changes which is worth calling out.
(Note that b8f7959f28c4f36 actually fixed a bug in the arm_pamax()
handling: arm_pamax() was missing a check for ARM_FEATURE_V8, so it
incorrectly thought that the qemu-system-arm 'max' CPU did not have
LPAE and turned off 'highmem' support in the virt board. Following
b8f7959f28c4f36 qemu-system-arm 'max' is treated the same as
'cortex-a15' and other v7 LPAE CPUs, because the generic feature
propagation code does correctly propagate V8 -> V7VE -> LPAE.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240109143804.1118307-1-peter.maydell@linaro.org
Diffstat (limited to 'include/hw/misc/stm32l4x5_exti.h')
0 files changed, 0 insertions, 0 deletions