xemu/target
Peter Maydell 987a232242 target/arm: Deliver BKPT/BRK exceptions to correct exception level
Most Arm architectural debug exceptions (eg watchpoints) are ignored
if the configured "debug exception level" is below the current
exception level (so for example EL1 can't arrange to get debug exceptions
for EL2 execution). Exceptions generated by the BRK or BPKT instructions
are a special case -- they must always cause an exception, so if
we're executing above the debug exception level then we
must take them to the current exception level.

This fixes a bug where executing BRK at EL2 could result in an
exception being taken at EL1 (which is strictly forbidden by the
architecture).

Fixes: https://bugs.launchpad.net/qemu/+bug/1838277
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190730132522.27086-1-peter.maydell@linaro.org
2019-07-30 17:05:22 +01:00
..
alpha Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
arm target/arm: Deliver BKPT/BRK exceptions to correct exception level 2019-07-30 17:05:22 +01:00
cris Supply missing header guards 2019-06-12 13:20:21 +02:00
hppa hppa: Delete unused hppa_cpu_list() function 2019-07-05 17:08:03 -03:00
i386 i386: Fix Snowridge CPU model name and features 2019-07-29 13:08:02 -03:00
lm32 Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
m68k m68k comments break patch submission due to being incorrectly formatted 2019-06-26 17:14:39 +02:00
microblaze Supply missing header guards 2019-06-12 13:20:21 +02:00
mips target/mips: Fix emulation of MSA pack instructions on big endian hosts 2019-07-22 19:33:09 +02:00
moxie Supply missing header guards 2019-06-12 13:20:21 +02:00
nios2 hmp: Move hmp.h to include/monitor/ 2019-07-02 07:19:45 +02:00
openrisc general: Replace global smp variables with smp machine properties 2019-07-05 17:07:36 -03:00
ppc Monitor patches for 2019-07-02 2019-07-03 00:16:43 +01:00
riscv RISC-V: Clear load reservations on context switch and SC 2019-06-25 22:37:04 -07:00
s390x s390x/cpumodel: change internal name of vxpdeh to match description 2019-07-16 11:29:38 +02:00
sh4 hmp: Move hmp.h to include/monitor/ 2019-07-02 07:19:45 +02:00
sparc hmp: Move hmp.h to include/monitor/ 2019-07-02 07:19:45 +02:00
tilegx Normalize position of header guard 2019-06-12 13:20:20 +02:00
tricore tricore: add QSEED instruction 2019-06-25 15:02:07 +02:00
unicore32 Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
xtensa hmp: Move hmp.h to include/monitor/ 2019-07-02 07:19:45 +02:00