[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/21] target/mips: fpu: Demacro RINT.<D|S>
From: |
Aleksandar Markovic |
Subject: |
[PULL 15/21] target/mips: fpu: Demacro RINT.<D|S> |
Date: |
Sun, 7 Jun 2020 21:46:19 +0200 |
This is just a cosmetic change to enable tools like gcov, gdb,
callgrind, etc. to better display involved source code.
Reviewed-by: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
Signed-off-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Message-Id: <20200518200920.17344-14-aleksandar.qemu.devel@gmail.com>
---
target/mips/fpu_helper.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/target/mips/fpu_helper.c b/target/mips/fpu_helper.c
index e227e53..dae1331 100644
--- a/target/mips/fpu_helper.c
+++ b/target/mips/fpu_helper.c
@@ -1113,10 +1113,26 @@ uint ## bits ## _t helper_float_ ## name(CPUMIPSState
*env, \
return fdret; \
}
-FLOAT_RINT(rint_s, 32)
-FLOAT_RINT(rint_d, 64)
#undef FLOAT_RINT
+uint64_t helper_float_rint_d(CPUMIPSState *env, uint64_t fs)
+{
+ uint64_t fdret;
+
+ fdret = float64_round_to_int(fs, &env->active_fpu.fp_status);
+ update_fcr31(env, GETPC());
+ return fdret;
+}
+
+uint32_t helper_float_rint_s(CPUMIPSState *env, uint32_t fs)
+{
+ uint32_t fdret;
+
+ fdret = float32_round_to_int(fs, &env->active_fpu.fp_status);
+ update_fcr31(env, GETPC());
+ return fdret;
+}
+
#define FLOAT_CLASS_SIGNALING_NAN 0x001
#define FLOAT_CLASS_QUIET_NAN 0x002
#define FLOAT_CLASS_NEGATIVE_INFINITY 0x004
--
2.7.4
- [PULL 00/21] MIPS queue for June 7th, 2020, Aleksandar Markovic, 2020/06/07
- [PULL 02/21] mailmap: Change email address of Stefan Brankovic, Aleksandar Markovic, 2020/06/07
- [PULL 03/21] target/mips: fpu: Demacro ADD.<D|S|PS>, Aleksandar Markovic, 2020/06/07
- [PULL 04/21] target/mips: fpu: Demacro SUB.<D|S|PS>, Aleksandar Markovic, 2020/06/07
- [PULL 01/21] mailmap: Change email address of Filip Bozuta, Aleksandar Markovic, 2020/06/07
- [PULL 06/21] target/mips: fpu: Demacro DIV.<D|S|PS>, Aleksandar Markovic, 2020/06/07
- [PULL 08/21] target/mips: fpu: Demacro MADD.<D|S|PS>, Aleksandar Markovic, 2020/06/07
- [PULL 07/21] target/mips: fpu: Remove now unused macro FLOAT_BINOP, Aleksandar Markovic, 2020/06/07
- [PULL 09/21] target/mips: fpu: Demacro MSUB.<D|S|PS>, Aleksandar Markovic, 2020/06/07
- [PULL 15/21] target/mips: fpu: Demacro RINT.<D|S>,
Aleksandar Markovic <=
- [PULL 05/21] target/mips: fpu: Demacro MUL.<D|S|PS>, Aleksandar Markovic, 2020/06/07
- [PULL 11/21] target/mips: fpu: Demacro NMSUB.<D|S|PS>, Aleksandar Markovic, 2020/06/07
- [PULL 12/21] target/mips: fpu: Remove now unused UNFUSED_FMA and FLOAT_FMA macros, Aleksandar Markovic, 2020/06/07
- [PULL 13/21] target/mips: fpu: Demacro CLASS.<D|S>, Aleksandar Markovic, 2020/06/07
- [PULL 18/21] target/mips: fpu: Refactor conversion from ieee to mips exception flags, Aleksandar Markovic, 2020/06/07
- [PULL 19/21] hw/mips: Implement the kvm_type() hook in MachineClass, Aleksandar Markovic, 2020/06/07
- [PULL 10/21] target/mips: fpu: Demacro NMADD.<D|S|PS>, Aleksandar Markovic, 2020/06/07
- [PULL 17/21] target/mips: fpu: Name better paired-single variables, Aleksandar Markovic, 2020/06/07
- [PULL 20/21] target/mips: Add Loongson-3 CPU definition, Aleksandar Markovic, 2020/06/07
- [PULL 21/21] target/mips: Enable hardware page table walker and CMGCR features for P5600, Aleksandar Markovic, 2020/06/07