mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/loongarch: Remove cpu_fcsr0
All of the fpu operations are defined with TCG_CALL_NO_WG, but they all modify FCSR0. The most efficient way to fix this is to remove cpu_fcsr0, and instead use explicit load and store operations for the two instructions that manipulate that value. Acked-by: Qi Hu <huqi@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Reported-by: Feiyang Chen <chenfeiyang@loongson.cn> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
7b06148df8
commit
10dcb08b03
6 changed files with 36 additions and 22 deletions
|
@ -872,8 +872,8 @@ uint64_t helper_ftint_w_d(CPULoongArchState *env, uint64_t fj)
|
|||
return fd;
|
||||
}
|
||||
|
||||
void helper_set_rounding_mode(CPULoongArchState *env, uint32_t fcsr0)
|
||||
void helper_set_rounding_mode(CPULoongArchState *env)
|
||||
{
|
||||
set_float_rounding_mode(ieee_rm[(fcsr0 >> FCSR0_RM) & 0x3],
|
||||
set_float_rounding_mode(ieee_rm[(env->fcsr0 >> FCSR0_RM) & 0x3],
|
||||
&env->fp_status);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue