mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/sparc: Use i128 for FqTOd, FqTOx
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-Id: <20231103173841.33651-10-richard.henderson@linaro.org>
This commit is contained in:
parent
d81e3efed9
commit
25a5769e3b
3 changed files with 10 additions and 9 deletions
|
@ -190,9 +190,9 @@ void helper_fstoq(CPUSPARCState *env, float32 src)
|
|||
QT0 = float32_to_float128(src, &env->fp_status);
|
||||
}
|
||||
|
||||
float64 helper_fqtod(CPUSPARCState *env)
|
||||
float64 helper_fqtod(CPUSPARCState *env, Int128 src)
|
||||
{
|
||||
return float128_to_float64(QT1, &env->fp_status);
|
||||
return float128_to_float64(f128_in(src), &env->fp_status);
|
||||
}
|
||||
|
||||
void helper_fdtoq(CPUSPARCState *env, float64 src)
|
||||
|
@ -227,9 +227,9 @@ int64_t helper_fdtox(CPUSPARCState *env, float64 src)
|
|||
return float64_to_int64_round_to_zero(src, &env->fp_status);
|
||||
}
|
||||
|
||||
int64_t helper_fqtox(CPUSPARCState *env)
|
||||
int64_t helper_fqtox(CPUSPARCState *env, Int128 src)
|
||||
{
|
||||
return float128_to_int64_round_to_zero(QT1, &env->fp_status);
|
||||
return float128_to_int64_round_to_zero(f128_in(src), &env->fp_status);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue