]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Disable has_el2 and has_el3 for user-only
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 5 Mar 2020 16:09:17 +0000 (16:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Mar 2020 16:09:17 +0000 (16:09 +0000)
commit45ca3a14081e069722a12db1c12facb3a73ed562
tree36e7f76c58ed736bf4c04c569a4279106c5bbc83
parente0a38bb35aa930c2d3b9982914297f0c0e8fd5c8
target/arm: Disable has_el2 and has_el3 for user-only

In arm_cpu_reset, we configure many system registers so that user-only
behaves as it should with a minimum of ifdefs.  However, we do not set
all of the system registers as required for a cpu with EL2 and EL3.

Disabling EL2 and EL3 mean that we will not look at those registers,
which means that we don't have to worry about configuring them.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200229012811.24129-4-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c