aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-08-21 11:49:38 -0700
committerRichard Henderson <rth@twiddle.net>2015-09-15 07:45:28 -0700
commit9b9dc7aceca411f1fb69d5426e5e88dd204813ed (patch)
tree12f4a1441ffb558a2029e6a15ac3c9f18265eb01 /linux-user
parent8fd29dd72b44b08af536248cbfc77f5c6bdf803d (diff)
downloadqemu-9b9dc7aceca411f1fb69d5426e5e88dd204813ed.zip
qemu-9b9dc7aceca411f1fb69d5426e5e88dd204813ed.tar.gz
qemu-9b9dc7aceca411f1fb69d5426e5e88dd204813ed.tar.bz2
target-tilegx: Generate SEGV properly
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 7ecb018..4b579c9 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -3460,6 +3460,9 @@ void cpu_loop(CPUTLGState *env)
case TILEGX_EXCP_REG_UDN_ACCESS:
gen_sigill_reg(env);
break;
+ case TILEGX_EXCP_SEGV:
+ gen_sigsegv_maperr(env, env->excaddr);
+ break;
default:
fprintf(stderr, "trapnr is %d[0x%x].\n", trapnr, trapnr);
g_assert_not_reached();