mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target-sh4: define FPSCR constants
Define FPSCR constants for all field and use them instead of hardcoded values. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
442599a340
commit
26ac1ea559
3 changed files with 37 additions and 9 deletions
|
@ -443,11 +443,12 @@ static inline void clr_t(void)
|
|||
|
||||
void helper_ld_fpscr(uint32_t val)
|
||||
{
|
||||
env->fpscr = val & 0x003fffff;
|
||||
if (val & 0x01)
|
||||
env->fpscr = val & FPSCR_MASK;
|
||||
if ((val & FPSCR_RM_MASK) == FPSCR_RM_ZERO) {
|
||||
set_float_rounding_mode(float_round_to_zero, &env->fp_status);
|
||||
else
|
||||
} else {
|
||||
set_float_rounding_mode(float_round_nearest_even, &env->fp_status);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t helper_fabs_FT(uint32_t t0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue