mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target/loongarch: Add floating point move instruction translation
This includes: - FMOV.{S/D} - FSEL - MOVGR2FR.{W/D}, MOVGR2FRH.W - MOVFR2GR.{S/D}, MOVFRH2GR.S - MOVGR2FCSR, MOVFCSR2GR - MOVFR2CF, MOVCF2FR - MOVGR2CF, MOVCF2GR Signed-off-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220606124333.2060567-14-yangxiaojuan@loongson.cn> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
7c1f88703d
commit
b7dabd5624
5 changed files with 203 additions and 0 deletions
|
@ -854,3 +854,9 @@ uint64_t helper_ftint_w_d(CPULoongArchState *env, uint64_t fj)
|
|||
update_fcsr0(env, GETPC());
|
||||
return fd;
|
||||
}
|
||||
|
||||
void helper_set_rounding_mode(CPULoongArchState *env, uint32_t fcsr0)
|
||||
{
|
||||
set_float_rounding_mode(ieee_rm[(fcsr0 >> FCSR0_RM) & 0x3],
|
||||
&env->fp_status);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue