diff options
author | Richard Henderson <rth@twiddle.net> | 2015-02-18 12:34:56 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2017-02-14 08:14:59 +1100 |
commit | 0c53d7342b4e8412f3b81eed67f053304813dc5d (patch) | |
tree | df1313a2cc5750bc9801b953072afab91d836248 /target/openrisc/cpu.h | |
parent | 9ecaa27e7123211f45ca723a736ffae14f6c1f42 (diff) | |
download | qemu-0c53d7342b4e8412f3b81eed67f053304813dc5d.zip qemu-0c53d7342b4e8412f3b81eed67f053304813dc5d.tar.gz qemu-0c53d7342b4e8412f3b81eed67f053304813dc5d.tar.bz2 |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/openrisc/cpu.h b/target/openrisc/cpu.h index 06d0e89..ef90e49 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) |