summaryrefslogtreecommitdiffstats
path: root/target/openrisc/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson2015-02-18 21:34:56 +0100
committerRichard Henderson2017-02-13 22:14:59 +0100
commit0c53d7342b4e8412f3b81eed67f053304813dc5d (patch)
treedf1313a2cc5750bc9801b953072afab91d836248 /target/openrisc/cpu.h
parenttarget/openrisc: Streamline arithmetic and OVE (diff)
downloadqemu-0c53d7342b4e8412f3b81eed67f053304813dc5d.tar.gz
qemu-0c53d7342b4e8412f3b81eed67f053304813dc5d.tar.xz
qemu-0c53d7342b4e8412f3b81eed67f053304813dc5d.zip
target/openrisc: Put SR[OVE] in TB flags
Removes a call at execution time for overflow exceptions. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target/openrisc/cpu.h')
-rw-r--r--target/openrisc/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/openrisc/cpu.h b/target/openrisc/cpu.h
index 06d0e897d8..ef90e49a4d 100644
--- a/target/openrisc/cpu.h
+++ b/target/openrisc/cpu.h
@@ -400,8 +400,8 @@ static inline void cpu_get_tb_cpu_state(CPUOpenRISCState *env,
{
*pc = env->pc;
*cs_base = 0;
- /* D_FLAG -- branch instruction exception */
- *flags = (env->flags & D_FLAG);
+ /* D_FLAG -- branch instruction exception, OVE overflow trap enable. */
+ *flags = (env->flags & D_FLAG) | (env->sr & SR_OVE);
}
static inline int cpu_mmu_index(CPUOpenRISCState *env, bool ifetch)