Skip to content

Commit

Permalink
hw/core: Introduce TCGCPUOps.debug_check_breakpoint
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
  • Loading branch information
rth7680 committed Jul 21, 2021
1 parent 258afb4 commit e3f7c80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/hw/core/tcg-cpu-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,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.
*
Expand Down

0 comments on commit e3f7c80

Please sign in to comment.