diff options
author | Richard Henderson <rth@twiddle.net> | 2015-08-21 11:49:38 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-09-15 07:45:28 -0700 |
commit | 9b9dc7aceca411f1fb69d5426e5e88dd204813ed (patch) | |
tree | 12f4a1441ffb558a2029e6a15ac3c9f18265eb01 /linux-user | |
parent | 8fd29dd72b44b08af536248cbfc77f5c6bdf803d (diff) |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 7ecb018616..4b579c9d23 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(); |