aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-user/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index e871b48..d5bb124 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -1719,7 +1719,7 @@ void cpu_loop (CPUState *env)
info.si_errno = 0;
/* XXX: check env->error_code */
info.si_code = TARGET_SEGV_MAPERR;
- info._sifields._sigfault._addr = env->debug1;
+ info._sifields._sigfault._addr = env->pregs[PR_EDA];
queue_signal(info.si_signo, &info);
}
break;