aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorWesley W. Terpstra <terpstra@debian.org>2011-07-12 14:34:23 +0300
committerRiku Voipio <riku.voipio@linaro.org>2011-07-12 14:34:23 +0300
commite6e5bd2dd1868b5a244bc572422f585cef579ffb (patch)
tree7d4741d1e6ba12c510f4302672439cb7dbf646bf /linux-user
parent7c2f6157d833cb95b355c7321597bc5a5ac976e4 (diff)
mips: null pointer deref should segfault
Dereferencing a null pointer causes an exception 0xC (EXCP_AdEL) instead of EXCP_TLBL. This should also trigger a segfault. Signed-off-by: Wesley W. Terpstra <terpstra@debian.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index e32f987786..2135b9c714 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -2120,6 +2120,8 @@ void cpu_loop(CPUMIPSState *env)
break;
case EXCP_TLBL:
case EXCP_TLBS:
+ case EXCP_AdEL:
+ case EXCP_AdES:
info.si_signo = TARGET_SIGSEGV;
info.si_errno = 0;
/* XXX: check env->error_code */