hvf: add guest debugging handlers for Apple Silicon hosts
commiteb2edc42b12683fdbe54003db7701f7ab6cda036
authorFrancesco Cagnin <fcagnin@quarkslab.com>
Tue, 6 Jun 2023 09:19:30 +0000 (6 10:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 6 Jun 2023 09:19:30 +0000 (6 10:19 +0100)
tree3d3340f8802d77d30065b2dbe818680d47c039f8
parentf41520402c3a917c378ad166c2c76feb64608b09
hvf: add guest debugging handlers for Apple Silicon hosts

Guests can now be debugged through the gdbstub. Support is added for
single-stepping, software breakpoints, hardware breakpoints and
watchpoints. The code has been structured like the KVM counterpart.

While guest debugging is enabled, the guest can still read and write the
DBG*_EL1 registers but they don't have any effect.

Signed-off-by: Francesco Cagnin <fcagnin@quarkslab.com>
Message-id: 20230601153107.81955-5-fcagnin@quarkslab.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
accel/hvf/hvf-accel-ops.c
accel/hvf/hvf-all.c
include/sysemu/hvf.h
include/sysemu/hvf_int.h
target/arm/hvf/hvf.c
target/arm/hvf_arm.h
target/i386/hvf/hvf.c