aboutsummaryrefslogtreecommitdiff
path: root/target/openrisc/interrupt.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-02-18 11:45:54 -0800
committerRichard Henderson <rth@twiddle.net>2017-02-14 08:14:59 +1100
commit84775c43f390d4f5dd9adf8732e7e0b6deed8f61 (patch)
tree56b0df7c4bfbcbafb342b4d3f7fb8c862ad2431e /target/openrisc/interrupt.c
parentcf2ae4428f320f3d8027a50c1cd45f4b5a6c93bb (diff)
target/openrisc: Keep SR_F in a separate variable
This avoids having to keep merging and extracting the flag from SR. Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target/openrisc/interrupt.c')
-rw-r--r--target/openrisc/interrupt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/openrisc/interrupt.c b/target/openrisc/interrupt.c
index a98163832e..042506f014 100644
--- a/target/openrisc/interrupt.c
+++ b/target/openrisc/interrupt.c
@@ -54,7 +54,7 @@ void openrisc_cpu_do_interrupt(CPUState *cs)
we need flush TLB when we enter&exit EXCP. */
tlb_flush(cs);
- env->esr = env->sr;
+ env->esr = cpu_get_sr(env);
env->sr &= ~SR_DME;
env->sr &= ~SR_IME;
env->sr |= SR_SM;