diff options
Diffstat (limited to 'target/loongarch/fpu_helper.c')
-rw-r--r-- | target/loongarch/fpu_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/loongarch/fpu_helper.c b/target/loongarch/fpu_helper.c index bd76529..4b96372 100644 --- a/target/loongarch/fpu_helper.c +++ b/target/loongarch/fpu_helper.c @@ -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); } |