From: Edgar E. Iglesias Date: Thu, 3 Sep 2009 08:15:17 +0000 (+0200) Subject: microblaze: Clear exception in dslot ESR bit if not in dslot. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a75cf0c52d353d90594007b69f27fcba1d5f1022;p=qemu.git microblaze: Clear exception in dslot ESR bit if not in dslot. Signed-off-by: Edgar E. Iglesias --- diff --git a/target-microblaze/helper.c b/target-microblaze/helper.c index 15a82392f1..7fbb5ddbf3 100644 --- a/target-microblaze/helper.c +++ b/target-microblaze/helper.c @@ -129,6 +129,7 @@ void do_interrupt(CPUState *env) case EXCP_MMU: env->regs[17] = env->sregs[SR_PC]; + env->sregs[SR_ESR] &= ~(1 << 12); /* Exception breaks branch + dslot sequence? */ if (env->iflags & D_FLAG) { D(qemu_log("D_FLAG set at exception bimm=%d\n", env->bimm));