mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -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
|
@ -118,11 +118,12 @@ static bool check_watchpoints(CPULM32State *env)
|
|||
|
||||
void lm32_debug_excp_handler(CPULM32State *env)
|
||||
{
|
||||
CPUState *cs = CPU(lm32_env_get_cpu(env));
|
||||
CPUBreakpoint *bp;
|
||||
|
||||
if (env->watchpoint_hit) {
|
||||
if (env->watchpoint_hit->flags & BP_CPU) {
|
||||
env->watchpoint_hit = NULL;
|
||||
if (cs->watchpoint_hit) {
|
||||
if (cs->watchpoint_hit->flags & BP_CPU) {
|
||||
cs->watchpoint_hit = NULL;
|
||||
if (check_watchpoints(env)) {
|
||||
raise_exception(env, EXCP_WATCHPOINT);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue