aboutsummaryrefslogtreecommitdiff
path: root/target/openrisc/interrupt.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2016-04-05 18:00:33 -0700
committerRichard Henderson <rth@twiddle.net>2017-02-14 08:15:00 +1100
commita01deb36a685365b4a3117112da3cc4f0f79e955 (patch)
tree5b5c12ab0b7d9437f55f4efb452d51f66f6f6337 /target/openrisc/interrupt.c
parent24c328521b19aff2559118809ddf0522d6dfaaea (diff)
downloadqemu-a01deb36a685365b4a3117112da3cc4f0f79e955.zip
qemu-a01deb36a685365b4a3117112da3cc4f0f79e955.tar.gz
qemu-a01deb36a685365b4a3117112da3cc4f0f79e955.tar.bz2
target/openrisc: Tidy handling of delayed branches
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target/openrisc/interrupt.c')
-rw-r--r--target/openrisc/interrupt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/openrisc/interrupt.c b/target/openrisc/interrupt.c
index 042506f..a2eec6f 100644
--- a/target/openrisc/interrupt.c
+++ b/target/openrisc/interrupt.c
@@ -34,8 +34,8 @@ void openrisc_cpu_do_interrupt(CPUState *cs)
CPUOpenRISCState *env = &cpu->env;
env->epcr = env->pc;
- if (env->flags & D_FLAG) {
- env->flags &= ~D_FLAG;
+ if (env->dflag) {
+ env->dflag = 0;
env->sr |= SR_DSX;
env->epcr -= 4;
} else {