diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-12-17 17:57:15 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2021-12-17 17:57:15 +0100 |
commit | 58c7edef6163dd9a136e64149b08eec3f5778f37 (patch) | |
tree | 681992d82ef36cb11d4d45a97843355ce65dc79a /target/ppc/fpu_helper.c | |
parent | 734cfbd84e6951e136aea129b37e6e3d4a58913a (diff) | |
download | qemu-58c7edef6163dd9a136e64149b08eec3f5778f37.zip qemu-58c7edef6163dd9a136e64149b08eec3f5778f37.tar.gz qemu-58c7edef6163dd9a136e64149b08eec3f5778f37.tar.bz2 |
target/ppc: Use helper_todouble in do_frsp
We only needed one ieee arithmetic operation to raise
exceptions. To convert back to register form, we can
use our simpler non-arithmetic function.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211119160502.17432-24-richard.henderson@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'target/ppc/fpu_helper.c')
-rw-r--r-- | target/ppc/fpu_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index 65acf60..870a861 100644 --- a/target/ppc/fpu_helper.c +++ b/target/ppc/fpu_helper.c @@ -729,7 +729,7 @@ static uint64_t do_frsp(CPUPPCState *env, uint64_t arg, uintptr_t retaddr) if (unlikely(flags & float_flag_invalid_snan)) { float_invalid_op_vxsnan(env, retaddr); } - return float32_to_float64(f32, &env->fp_status); + return helper_todouble(f32); } uint64_t helper_frsp(CPUPPCState *env, uint64_t arg) |