diff options
author | Richard Henderson <rth@twiddle.net> | 2011-10-25 10:34:06 -0700 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2011-10-27 14:43:10 +0300 |
commit | 75f22e4e69aa4e6d58f52c1863910b3245acc719 (patch) | |
tree | 165c09332ef8d2c389de9bf9bbf0d85a3941728f /linux-user/main.c | |
parent | 0f6b4d21121bec70b383b4a3bc1c46d9c83f8692 (diff) | |
download | qemu-75f22e4e69aa4e6d58f52c1863910b3245acc719.zip qemu-75f22e4e69aa4e6d58f52c1863910b3245acc719.tar.gz qemu-75f22e4e69aa4e6d58f52c1863910b3245acc719.tar.bz2 |
sparc-linux-user: Handle SIGILL.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/main.c')
-rw-r--r-- | linux-user/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index e7dad54..2bc10ed 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; |