From 68016c627beb3df8ce69225b64ed6433efcc967d Mon Sep 17 00:00:00 2001 From: bellard Date: Mon, 7 Feb 2005 23:12:27 +0000 Subject: SIGSEGV signals for ARM and SPARC git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1272 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'linux-user') diff --git a/linux-user/main.c b/linux-user/main.c index 6b5ed2af67..f406f615d7 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", -- cgit v1.2.3