diff --git a/linux-user/main.c b/linux-user/main.c index b6b02fd5a1..816e1fc665 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1868,6 +1868,13 @@ void cpu_loop(CPUMIPSState *env) break; case EXCP_TLBL: case EXCP_TLBS: + info.si_signo = TARGET_SIGSEGV; + info.si_errno = 0; + /* XXX: check env->error_code */ + info.si_code = TARGET_SEGV_MAPERR; + info._sifields._sigfault._addr = env->CP0_BadVAddr; + queue_signal(env, info.si_signo, &info); + break; case EXCP_CpU: case EXCP_RI: info.si_signo = TARGET_SIGILL;