From 75f22e4e69aa4e6d58f52c1863910b3245acc719 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 25 Oct 2011 10:34:06 -0700 Subject: sparc-linux-user: Handle SIGILL. Signed-off-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'linux-user/main.c') diff --git a/linux-user/main.c b/linux-user/main.c index e7dad547b8..2bc10ed860 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1191,6 +1191,15 @@ void cpu_loop (CPUSPARCState *env) case EXCP_INTERRUPT: /* just indicate that signals should be handled asap */ break; + case TT_ILL_INSN: + { + info.si_signo = TARGET_SIGILL; + info.si_errno = 0; + info.si_code = TARGET_ILL_ILLOPC; + info._sifields._sigfault._addr = env->pc; + queue_signal(env, info.si_signo, &info); + } + break; case EXCP_DEBUG: { int sig; -- cgit v1.2.3