[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] target-mips: fix CP0.BadVAddr by stopping translati
From: |
Leon Alrae |
Subject: |
[Qemu-devel] [PATCH] target-mips: fix CP0.BadVAddr by stopping translation on Address error |
Date: |
Mon, 26 Jan 2015 16:10:26 +0000 |
BadVAddr is supposed to capture the most recent address that caused
the exception. Currently this is not happening as translation is not stopped
and BadVAddr is updated with subsequent addresses.
Signed-off-by: Leon Alrae <address@hidden>
---
target-mips/translate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target-mips/translate.c b/target-mips/translate.c
index f33c10c..635192c 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -18438,6 +18438,7 @@ static void decode_opc(CPUMIPSState *env, DisasContext
*ctx)
if (ctx->pc & 0x3) {
env->CP0_BadVAddr = ctx->pc;
generate_exception_err(ctx, EXCP_AdEL, EXCP_INST_NOTAVAIL);
+ ctx->bstate = BS_STOP;
return;
}
--
2.1.0
- [Qemu-devel] [PATCH] target-mips: fix CP0.BadVAddr by stopping translation on Address error,
Leon Alrae <=