aboutsummaryrefslogtreecommitdiff
path: root/linux-user/main.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-10-25 10:34:07 -0700
committerRiku Voipio <riku.voipio@linaro.org>2011-10-27 14:43:10 +0300
commit59f7182f945ca9a0a689ab60bfcd7e37c25fc4cb (patch)
tree8800923e28d4134e182ee5c731be332a5f8f744a /linux-user/main.c
parent75f22e4e69aa4e6d58f52c1863910b3245acc719 (diff)
downloadqemu-59f7182f945ca9a0a689ab60bfcd7e37c25fc4cb.zip
qemu-59f7182f945ca9a0a689ab60bfcd7e37c25fc4cb.tar.gz
qemu-59f7182f945ca9a0a689ab60bfcd7e37c25fc4cb.tar.bz2
sparc-linux-user: Fixup sending SIGSEGV
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/main.c')
-rw-r--r--linux-user/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 2bc10ed..c36a8af 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -1148,7 +1148,7 @@ void cpu_loop (CPUSPARCState *env)
case TT_TFAULT:
case TT_DFAULT:
{
- info.si_signo = SIGSEGV;
+ info.si_signo = TARGET_SIGSEGV;
info.si_errno = 0;
/* XXX: check env->error_code */
info.si_code = TARGET_SEGV_MAPERR;
@@ -1166,7 +1166,7 @@ void cpu_loop (CPUSPARCState *env)
case TT_TFAULT:
case TT_DFAULT:
{
- info.si_signo = SIGSEGV;
+ info.si_signo = TARGET_SIGSEGV;
info.si_errno = 0;
/* XXX: check env->error_code */
info.si_code = TARGET_SEGV_MAPERR;