mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-27 06:35:23 -07:00
target/openrisc: Set default NaN pattern explicitly
Set the default NaN pattern explicitly for openrisc. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241202131347.498124-45-peter.maydell@linaro.org
This commit is contained in:
parent
5c3ba81055
commit
328dea12ec
1 changed files with 2 additions and 0 deletions
|
|
@ -111,6 +111,8 @@ static void openrisc_cpu_reset_hold(Object *obj, ResetType type)
|
|||
*/
|
||||
set_float_2nan_prop_rule(float_2nan_prop_x87, &cpu->env.fp_status);
|
||||
|
||||
/* Default NaN: sign bit clear, frac msb set */
|
||||
set_float_default_nan_pattern(0b01000000, &cpu->env.fp_status);
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
cpu->env.picmr = 0x00000000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue