target-arm: kvm - implement software breakpoints
commit2ecb2027bc5033dfa92d00d708723053f9689564
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 17 Dec 2015 13:37:15 +0000 (17 13:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Dec 2015 13:37:15 +0000 (17 13:37 +0000)
treeb1a2cbd521d3646c6729572f125d2b8bbf89373f
parent29eb3d9a911b13e2a66413ba5cc6c69a0f4a4528
target-arm: kvm - implement software breakpoints

These don't involve messing around with debug registers, just setting
the breakpoint instruction in memory. GDB will not use this mechanism if
it can't access the memory to write the breakpoint.

All the kernel has to do is ensure the hypervisor traps the breakpoint
exceptions and returns to userspace.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1449599553-24713-3-git-send-email-alex.bennee@linaro.org
[PMM: Fixed typo in comment]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/kvm.c
target-arm/kvm32.c
target-arm/kvm64.c
target-arm/kvm_arm.h