aboutsummaryrefslogtreecommitdiff
path: root/target-i386/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index 080d2b8c7d..ce2b5eb346 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -1862,7 +1862,7 @@ int check_hw_breakpoints(CPUState *env, int force_dr6_update)
static CPUDebugExcpHandler *prev_debug_excp_handler;
-void raise_exception(int exception_index);
+void raise_exception_env(int exception_index, CPUState *env);
static void breakpoint_handler(CPUState *env)
{
@@ -1872,7 +1872,7 @@ static void breakpoint_handler(CPUState *env)
if (env->watchpoint_hit->flags & BP_CPU) {
env->watchpoint_hit = NULL;
if (check_hw_breakpoints(env, 0))
- raise_exception(EXCP01_DB);
+ raise_exception_env(EXCP01_DB, env);
else
cpu_resume_from_signal(env, NULL);
}
@@ -1881,7 +1881,7 @@ static void breakpoint_handler(CPUState *env)
if (bp->pc == env->eip) {
if (bp->flags & BP_CPU) {
check_hw_breakpoints(env, 1);
- raise_exception(EXCP01_DB);
+ raise_exception_env(EXCP01_DB, env);
}
break;
}