aboutsummaryrefslogtreecommitdiff
path: root/accel/hvf/hvf-all.c
diff options
context:
space:
mode:
authorFrancesco Cagnin <fcagnin@quarkslab.com>2023-06-06 10:19:30 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-06-06 10:19:30 +0100
commiteb2edc42b12683fdbe54003db7701f7ab6cda036 (patch)
tree3d3340f8802d77d30065b2dbe818680d47c039f8 /accel/hvf/hvf-all.c
parentf41520402c3a917c378ad166c2c76feb64608b09 (diff)
downloadqemu-eb2edc42b12683fdbe54003db7701f7ab6cda036.zip
qemu-eb2edc42b12683fdbe54003db7701f7ab6cda036.tar.gz
qemu-eb2edc42b12683fdbe54003db7701f7ab6cda036.tar.bz2
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>
Diffstat (limited to 'accel/hvf/hvf-all.c')
-rw-r--r--accel/hvf/hvf-all.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/accel/hvf/hvf-all.c b/accel/hvf/hvf-all.c
index e983c23..754707d 100644
--- a/accel/hvf/hvf-all.c
+++ b/accel/hvf/hvf-all.c
@@ -61,3 +61,9 @@ int hvf_sw_breakpoints_active(CPUState *cpu)
{
return !QTAILQ_EMPTY(&hvf_state->hvf_sw_breakpoints);
}
+
+int hvf_update_guest_debug(CPUState *cpu)
+{
+ hvf_arch_update_guest_debug(cpu);
+ return 0;
+}