summary refs log tree commit diff stats
path: root/target-microblaze/helper.c
diff options
context:
space:
mode:
authorPeter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>2012-06-01 13:23:28 +1000
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2012-06-04 10:19:46 +0200
commit8cc9b43f7c5f826b39af4b012ad89bb55faac29c (patch)
tree91df24721384fd897840172e0af0d8507c66b60c /target-microblaze/helper.c
parent9c92bf7f6c3f675e60b8ba8a5287bb88ea1eac36 (diff)
downloadfocaccia-qemu-8cc9b43f7c5f826b39af4b012ad89bb55faac29c.tar.gz
focaccia-qemu-8cc9b43f7c5f826b39af4b012ad89bb55faac29c.zip
target-microblaze: lwx/swx: first implementation
Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-microblaze/helper.c')
-rw-r--r--target-microblaze/helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-microblaze/helper.c b/target-microblaze/helper.c
index 2412a583f1..74fce26827 100644
--- a/target-microblaze/helper.c
+++ b/target-microblaze/helper.c
@@ -29,6 +29,7 @@
 void do_interrupt (CPUMBState *env)
 {
     env->exception_index = -1;
+    env->res_addr = RES_ADDR_NONE;
     env->regs[14] = env->sregs[SR_PC];
 }
 
@@ -116,6 +117,7 @@ void do_interrupt(CPUMBState *env)
     assert(!((env->iflags & D_FLAG) && (env->iflags & IMM_FLAG)));
     assert(!(env->iflags & (DRTI_FLAG | DRTE_FLAG | DRTB_FLAG)));
 /*    assert(env->sregs[SR_MSR] & (MSR_EE)); Only for HW exceptions.  */
+    env->res_addr = RES_ADDR_NONE;
     switch (env->exception_index) {
         case EXCP_HW_EXCP:
             if (!(env->pvr.regs[0] & PVR0_USE_EXC_MASK)) {