mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
cpu: Move watchpoint fields from CPU_COMMON to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
0429a97195
commit
ff4700b05c
13 changed files with 60 additions and 47 deletions
|
@ -359,7 +359,7 @@ typedef struct CPUXtensaState {
|
|||
int exception_taken;
|
||||
|
||||
/* Watchpoints for DBREAK registers */
|
||||
CPUWatchpoint *cpu_watchpoint[MAX_NDBREAK];
|
||||
struct CPUWatchpoint *cpu_watchpoint[MAX_NDBREAK];
|
||||
|
||||
CPU_COMMON
|
||||
} CPUXtensaState;
|
||||
|
|
|
@ -81,11 +81,13 @@ static uint32_t check_hw_breakpoints(CPUXtensaState *env)
|
|||
|
||||
void xtensa_breakpoint_handler(CPUXtensaState *env)
|
||||
{
|
||||
if (env->watchpoint_hit) {
|
||||
if (env->watchpoint_hit->flags & BP_CPU) {
|
||||
CPUState *cs = CPU(xtensa_env_get_cpu(env));
|
||||
|
||||
if (cs->watchpoint_hit) {
|
||||
if (cs->watchpoint_hit->flags & BP_CPU) {
|
||||
uint32_t cause;
|
||||
|
||||
env->watchpoint_hit = NULL;
|
||||
cs->watchpoint_hit = NULL;
|
||||
cause = check_hw_breakpoints(env);
|
||||
if (cause) {
|
||||
debug_exception_env(env, cause);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue