[5786] target-ppc: convert FPU load/store to TCG
Revision: 5786
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5786 Author: aurel32 Date: 2008-11-23 16:30:50 +0000 (Sun, 23 Nov 2008)
Log Message:
-----------
target-ppc: convert FPU load/store to TCG
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/target-ppc/helper.h
trunk/target-ppc/op_helper.c
trunk/target-ppc/op_mem.h
trunk/target-ppc/translate.c
Modified: trunk/target-ppc/helper.h
===================================================================
target-ppc/helper.h +2 -0
@@ -35,6 +35,8 @@ DEF_HELPER_2(compute_fprf, i32, i64, i32) DEF_HELPER_2(store_fpscr, void, i64, i32) DEF_HELPER_1(fpscr_setbit, void, i32) +DEF_HELPER_1(float64_to_float32, i32, i64) +DEF_HELPER_1(float32_to_float64, i64, i32) DEF_HELPER_1(fctiw, i64, i64)DEF_HELPER_1 (fctiwz, i64, i64)
Modified: trunk/target-ppc/op_helper.c
===================================================================
target-ppc/op_helper.c +18 -0
@@ -237,6 +237,24 @@/*****************************************************************************/ /* Floating point operations helpers */ +uint64_t helper_float32_to_float64 (uint32_t arg) +{ +CPU_FloatU f; +CPU_DoubleU d; + f.l = arg; + d.d =float32_to_float64 (f.f, &env->fp_status); +return d.ll; +} + +uint32_t helper_float64_to_float32 (uint64_t arg) +{ +CPU_FloatU f; +CPU_DoubleU d; + d.ll = arg; + f.f =float64_to_float32 (d.d, &env->fp_status); +return f.l; +} + static always_inline int fpisneg (float64 d) {CPU_DoubleU u;
Modified: trunk/target-ppc/op_mem.h
===================================================================
target-ppc/op_mem.h +0 -133
139 lines not on this page · raw message
Modified: trunk/target-ppc/translate.c
===================================================================
target-ppc/translate.c +139 -83
340 lines not on this page · raw message