qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/7] alpha-linux-user: Fix siginfo.si_addr for SIGSEGV and SIGBUS.
Date: Mon,  3 May 2010 10:07:50 -0700	[thread overview]
Message-ID: <1272906475-14480-3-git-send-email-rth@twiddle.net> (raw)
In-Reply-To: <1272906475-14480-2-git-send-email-rth@twiddle.net>

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 linux-user/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux-user/main.c b/linux-user/main.c
index 18b52c0..e35c124 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -2434,7 +2434,7 @@ void cpu_loop (CPUState *env)
             info.si_signo = TARGET_SIGSEGV;
             info.si_errno = 0;
             info.si_code = 0;  /* ??? SEGV_MAPERR vs SEGV_ACCERR.  */
-            info._sifields._sigfault._addr = env->pc;
+            info._sifields._sigfault._addr = env->ipr[IPR_EXC_ADDR];
             queue_signal(env, info.si_signo, &info);
             break;
         case EXCP_DTB_MISS_PAL:
@@ -2458,7 +2458,7 @@ void cpu_loop (CPUState *env)
             info.si_signo = TARGET_SIGBUS;
             info.si_errno = 0;
             info.si_code = TARGET_BUS_ADRALN;
-            info._sifields._sigfault._addr = env->pc;
+            info._sifields._sigfault._addr = env->ipr[IPR_EXC_ADDR];
             queue_signal(env, info.si_signo, &info);
             break;
         case EXCP_OPCDEC:
-- 
1.6.6.1

  reply	other threads:[~2010-05-03 17:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-03 17:07 [Qemu-devel] [PATCH 0/7] alpha-linux syscall fixes Richard Henderson
2010-05-03 17:07 ` [Qemu-devel] [PATCH 1/7] alpha-linux-user: Fix brk error return Richard Henderson
2010-05-03 17:07   ` Richard Henderson [this message]
2010-05-03 17:07     ` [Qemu-devel] [PATCH 3/7] alpha-linux-user: Add correct sigaction constants Richard Henderson
2010-05-03 17:07       ` [Qemu-devel] [PATCH 4/7] alpha-linux-user: Fix pipe return mechanism Richard Henderson
2010-05-03 17:07         ` [Qemu-devel] [PATCH 5/7] alpha-linux-user: Fix getxpid Richard Henderson
2010-05-03 17:07           ` [Qemu-devel] [PATCH 6/7] alpha-linux-user: Fix sigsuspend parameters Richard Henderson
2010-05-03 17:07             ` [Qemu-devel] [PATCH 7/7] alpha-linux-user: Fix sigprocmask Richard Henderson
2010-05-21 16:27 ` [Qemu-devel] [PATCH 0/7] alpha-linux syscall fixes Aurelien Jarno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1272906475-14480-3-git-send-email-rth@twiddle.net \
    --to=rth@twiddle.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).