[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [7193] MIPS: Raise SIGSEGV, not SIGILL when an access fault
From: |
Paul Brook |
Subject: |
[Qemu-devel] [7193] MIPS: Raise SIGSEGV, not SIGILL when an access faults. |
Date: |
Tue, 21 Apr 2009 01:03:11 +0000 |
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 <address@hidden>
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [7193] MIPS: Raise SIGSEGV, not SIGILL when an access faults.,
Paul Brook <=