mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Implement default-NaN mode.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6106 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a49ea279c4
commit
5c7908ed23
3 changed files with 25 additions and 0 deletions
|
@ -2334,6 +2334,8 @@ void HELPER(vfp_set_fpscr)(CPUState *env, uint32_t val)
|
|||
}
|
||||
set_float_rounding_mode(i, &env->vfp.fp_status);
|
||||
}
|
||||
if (changed & (1 << 25))
|
||||
set_default_nan_mode((val & (1 << 25)) != 0, &env->vfp.fp_status);
|
||||
|
||||
i = vfp_exceptbits_to_host((val >> 8) & 0x1f);
|
||||
set_float_exception_flags(i, &env->vfp.fp_status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue