From 9b9dc7aceca411f1fb69d5426e5e88dd204813ed Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 21 Aug 2015 11:49:38 -0700 Subject: target-tilegx: Generate SEGV properly Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- linux-user/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux-user/main.c') 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(); -- cgit v1.2.3