aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-07 23:12:27 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-07 23:12:27 +0000
commit68016c627beb3df8ce69225b64ed6433efcc967d (patch)
treec6f63bf265e33ee7bae7be1d95a4fa2c8d606cfe /linux-user
parent9d89330183ceb170df926bbc395deb12e136e0f7 (diff)
downloadqemu-68016c627beb3df8ce69225b64ed6433efcc967d.zip
qemu-68016c627beb3df8ce69225b64ed6433efcc967d.tar.gz
qemu-68016c627beb3df8ce69225b64ed6433efcc967d.tar.bz2
SIGSEGV signals for ARM and SPARC
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1272 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 6b5ed2a..f406f61 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -368,6 +368,17 @@ void cpu_loop(CPUARMState *env)
case EXCP_INTERRUPT:
/* just indicate that signals should be handled asap */
break;
+ case EXCP_PREFETCH_ABORT:
+ case EXCP_DATA_ABORT:
+ {
+ info.si_signo = SIGSEGV;
+ info.si_errno = 0;
+ /* XXX: check env->error_code */
+ info.si_code = TARGET_SEGV_MAPERR;
+ info._sifields._sigfault._addr = env->cp15_6;
+ queue_signal(info.si_signo, &info);
+ }
+ break;
default:
error:
fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n",