aboutsummaryrefslogtreecommitdiff
path: root/target/openrisc/interrupt.c
diff options
context:
space:
mode:
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 042506f014..a2eec6fb32 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 {