target/arm: fix exception syndrome for AArch32 bkpt insn
authorJan Klötzke <jan.kloetzke@kernkonzept.com>
Thu, 1 Feb 2024 10:57:19 +0000 (10:57 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Feb 2024 13:51:57 +0000 (13:51 +0000)
commitf670be1aad33e801779af580398895b9455747ee
tree40ae034d8e42dba4ef271bd23762358e7abcdaf8
parentc3709fde5955d13f6d4f86ab46ef3cc2288ca65e
target/arm: fix exception syndrome for AArch32 bkpt insn

Debug exceptions that target AArch32 Hyp mode are reported differently
than on AAarch64. Internally, Qemu uses the AArch64 syndromes. Therefore
such exceptions need to be either converted to a prefetch abort
(breakpoints, vector catch) or a data abort (watchpoints).

Cc: qemu-stable@nongnu.org
Signed-off-by: Jan Klötzke <jan.kloetzke@kernkonzept.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240127202758.3326381-1-jan.kloetzke@kernkonzept.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c
target/arm/syndrome.h