summaryrefslogtreecommitdiffstats
path: root/include/hw/core
diff options
context:
space:
mode:
authorRichard Henderson2021-07-19 20:14:30 +0200
committerRichard Henderson2021-07-21 19:47:04 +0200
commite3f7c801f1b21b01066c5293f7659f1054c4d63b (patch)
treed38e05b74662fab6eecfa1b271b374febd528d45 /include/hw/core
parentaccel/tcg: Use CF_NO_GOTO_{TB, PTR} in cpu_exec_step_atomic (diff)
downloadqemu-e3f7c801f1b21b01066c5293f7659f1054c4d63b.tar.gz
qemu-e3f7c801f1b21b01066c5293f7659f1054c4d63b.tar.xz
qemu-e3f7c801f1b21b01066c5293f7659f1054c4d63b.zip
hw/core: Introduce TCGCPUOps.debug_check_breakpoint
New hook to return true when an architectural breakpoint is to be recognized and false when it should be suppressed. First use must wait until other pieces are in place. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/hw/core')
-rw-r--r--include/hw/core/tcg-cpu-ops.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/core/tcg-cpu-ops.h b/include/hw/core/tcg-cpu-ops.h
index 72d791438c..eab27d0c03 100644
--- a/include/hw/core/tcg-cpu-ops.h
+++ b/include/hw/core/tcg-cpu-ops.h
@@ -89,6 +89,12 @@ struct TCGCPUOps {
bool (*debug_check_watchpoint)(CPUState *cpu, CPUWatchpoint *wp);
/**
+ * @debug_check_breakpoint: return true if the architectural
+ * breakpoint whose PC has matched should really fire.
+ */
+ bool (*debug_check_breakpoint)(CPUState *cpu);
+
+ /**
* @io_recompile_replay_branch: Callback for cpu_io_recompile.
*
* The cpu has been stopped, and cpu_restore_state_from_tb has been