diff options
author | Richard Henderson <rth@twiddle.net> | 2015-02-18 11:45:54 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2017-02-14 08:14:59 +1100 |
commit | 84775c43f390d4f5dd9adf8732e7e0b6deed8f61 (patch) | |
tree | 56b0df7c4bfbcbafb342b4d3f7fb8c862ad2431e /target/openrisc/interrupt_helper.c | |
parent | cf2ae4428f320f3d8027a50c1cd45f4b5a6c93bb (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_helper.c')
-rw-r--r-- | target/openrisc/interrupt_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/openrisc/interrupt_helper.c b/target/openrisc/interrupt_helper.c index a6d4df3ce2..c7fa97a565 100644 --- a/target/openrisc/interrupt_helper.c +++ b/target/openrisc/interrupt_helper.c @@ -33,7 +33,7 @@ void HELPER(rfe)(CPUOpenRISCState *env) #endif cpu->env.pc = cpu->env.epcr; cpu->env.npc = cpu->env.epcr; - cpu->env.sr = cpu->env.esr; + cpu_set_sr(&cpu->env, cpu->env.esr); cpu->env.lock_addr = -1; #ifndef CONFIG_USER_ONLY |