target-arm: Fix CPU breakpoint handling
authorSergey Fedorov <serge.fdrv@gmail.com>
Tue, 13 Oct 2015 09:56:28 +0000 (12:56 +0300)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Oct 2015 13:48:56 +0000 (14:48 +0100)
commit5d98bf8f38c17a348ab6e8af196088cd4953acd0
treefe2222087a4923efd844201264c19e94012aa29f
parente63a2d4d9ed73e33a0b7483085808048be8bbcb1
target-arm: Fix CPU breakpoint handling

A QEMU breakpoint match is not definitely an architectural breakpoint
match. If an exception is generated unconditionally during translation,
it is hardly possible to ignore it in the debug exception handler.

Generate a call to a helper to check CPU breakpoints and raise an
exception only if any breakpoint matches architecturally.

Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper.h
target-arm/op_helper.c
target-arm/translate-a64.c
target-arm/translate.c