summaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-03-11 16:35:30 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-03-11 16:35:30 +0000
commitecd78a0ac7a7f5f37638a1847391206bb04c48e1 (patch)
treebb80624976e2303126837dcd4f1e98ac46f6ec16 /target-mips
parent4e9aec746e8d87fbe8805b881d6dae898a75372b (diff)
downloadqemu-ecd78a0ac7a7f5f37638a1847391206bb04c48e1.zip
Clear MIPS_HFLAG_BMASK for ErrorEPC (Thiemo Seufer).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1777 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index 62c53a0bf0..752ee72750 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -326,6 +326,7 @@ void do_interrupt (CPUState *env)
* come back to the jump
*/
env->CP0_ErrorEPC = env->PC - 4;
+ env->hflags &= ~MIPS_HFLAG_BMASK;
} else {
env->CP0_ErrorEPC = env->PC;
}