target/openrisc patch queue
The following changes since commit 28b58f19d269633b3d14b6aebf1e92b3cd3ab56e:
ui/gtk: Get display refresh rate with GDK version 3.22 or later (2020-01-16 14:03:45 +0000)
are available in the Git repository at:
https://github.com/rth7680/qemu.git tags/pull-or1k-20200116
for you to fetch changes up to 97a254b3f03a184136e381c6d9fd80475e1795ac:
target/openrisc: Fix FPCSR mask to allow setting DZF (2020-01-16 14:50:43 -1000)
----------------------------------------------------------------
Fix FPSCR masking
----------------------------------------------------------------
Stafford Horne (1):
target/openrisc: Fix FPCSR mask to allow setting DZF
target/openrisc/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
[PULL 1/1] target/openrisc: Fix FPCSR mask to allow setting DZF
From: Stafford Horne <[email protected]>
The mask used when setting FPCSR allows setting bits 10 to 1. However, OpenRISC has flags and config bits in 11 to 1, 11 being Divide by Zero Flag (DZF). This seems like an off-by-one bug.
This was found when testing the GLIBC test suite which has test cases to set and clear all bits.
Message-Id: <[email protected]>
--- target/openrisc/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/openrisc/fpu_helper.c +1 -1
@@ -70,7 +70,7 @@ void cpu_set_fpcsr(CPUOpenRISCState *env, uint32_t val) float_round_down }; - env->fpcsr = val &0x7ff ; + env->fpcsr = val &0xfff ;set_float_rounding_mode (rm_to_sf[extract32 (val,1 ,2 )], &env->fp_status); }
Signature · 1 line
2.20.1
Peter Maydell
AppliedQuoted 16 lines · Richard Henderson
The following changes since commit
28b58f19d269633b3d14b6aebf1e92b3cd3ab56e:ui/gtk: Get display refresh rate with GDK version 3.22 or later (2020-01-16 14:03:45 +0000)
are available in the Git repository at:
https://github.com/rth7680/qemu.git tags/pull-or1k-20200116
for you to fetch changes up to
97a254b3f03a184136e381c6d9fd80475e1795ac:target/openrisc: Fix FPCSR mask to allow setting DZF (2020-01-16 14:50:43 -1000)
----------------------------------------------------------------
Fix FPSCR masking
Quoted 6 lines
----------------------------------------------------------------
Stafford Horne (1):
target/openrisc: Fix FPCSR mask to allow setting DZFtarget/openrisc/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.
-- PMM