qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [7193] MIPS: Raise SIGSEGV, not SIGILL when an access faults.
@ 2009-04-21  1:03 Paul Brook
  0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2009-04-21  1:03 UTC (permalink / raw)
  To: qemu-devel

Revision: 7193
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7193
Author:   pbrook
Date:     2009-04-21 01:03:10 +0000 (Tue, 21 Apr 2009)
Log Message:
-----------
MIPS: Raise SIGSEGV, not SIGILL when an access faults.

Signed-off-by: Paul Brook <paul@codesourcery.com>

Modified Paths:
--------------
    trunk/linux-user/main.c

Modified: trunk/linux-user/main.c
===================================================================
--- trunk/linux-user/main.c	2009-04-21 00:59:40 UTC (rev 7192)
+++ trunk/linux-user/main.c	2009-04-21 01:03:10 UTC (rev 7193)
@@ -1868,6 +1868,13 @@
             break;
         case EXCP_TLBL:
         case EXCP_TLBS:
+            info.si_signo = TARGET_SIGSEGV;
+            info.si_errno = 0;
+            /* XXX: check env->error_code */
+            info.si_code = TARGET_SEGV_MAPERR;
+            info._sifields._sigfault._addr = env->CP0_BadVAddr;
+            queue_signal(env, info.si_signo, &info);
+            break;
         case EXCP_CpU:
         case EXCP_RI:
             info.si_signo = TARGET_SIGILL;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-21  1:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-21  1:03 [Qemu-devel] [7193] MIPS: Raise SIGSEGV, not SIGILL when an access faults Paul Brook

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).