Skip to contentSkip to conversation

[5124] SH4: convert floating-point ops to TCG

Qemu-devel Aurelien Jarno 1 participant 1 message Sep 1, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5124

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5124
Author:   aurel32
Date:     2008-09-01 22:11:56 +0000 (Mon, 01 Sep 2008)

Log Message:
-----------
SH4: convert floating-point ops to TCG

Modified Paths:
--------------
trunk/target-sh4/helper.h
trunk/target-sh4/op.c
trunk/target-sh4/op_helper.c
trunk/target-sh4/translate.c

Removed Paths:
-------------
trunk/target-sh4/op_mem.c

Modified: trunk/target-sh4/helper.h
===================================================================

target-sh4/helper.h +24 -0
@@ -19,3 +19,27 @@
 DEF_HELPER(void, helper_macw, (uint32_t, uint32_t))
 
 DEF_HELPER(void, helper_ld_fpscr, (uint32_t))
+
+DEF_HELPER(uint32_t, helper_fabs_FT, (uint32_t))
+DEF_HELPER(uint64_t, helper_fabs_DT, (uint64_t))
+DEF_HELPER(uint32_t, helper_fadd_FT, (uint32_t, uint32_t))
+DEF_HELPER(uint64_t, helper_fadd_DT, (uint64_t, uint64_t))
+DEF_HELPER(uint64_t, helper_fcnvsd_FT_DT, (uint32_t))
+DEF_HELPER(uint32_t, helper_fcnvds_DT_FT, (uint64_t))
+
+DEF_HELPER(void, helper_fcmp_eq_FT, (uint32_t, uint32_t))
+DEF_HELPER(void, helper_fcmp_eq_DT, (uint64_t, uint64_t))
+DEF_HELPER(void, helper_fcmp_gt_FT, (uint32_t, uint32_t))
+DEF_HELPER(void, helper_fcmp_gt_DT, (uint64_t, uint64_t))
+DEF_HELPER(uint32_t, helper_fdiv_FT, (uint32_t, uint32_t))
+DEF_HELPER(uint64_t, helper_fdiv_DT, (uint64_t, uint64_t))
+DEF_HELPER(uint32_t, helper_float_FT, (uint32_t))
+DEF_HELPER(uint64_t, helper_float_DT, (uint32_t))
+DEF_HELPER(uint32_t, helper_fmul_FT, (uint32_t, uint32_t))
+DEF_HELPER(uint64_t, helper_fmul_DT, (uint64_t, uint64_t))
+DEF_HELPER(uint32_t, helper_fsub_FT, (uint32_t, uint32_t))
+DEF_HELPER(uint64_t, helper_fsub_DT, (uint64_t, uint64_t))
+DEF_HELPER(uint32_t, helper_fsqrt_FT, (uint32_t))
+DEF_HELPER(uint64_t, helper_fsqrt_DT, (uint64_t))
+DEF_HELPER(uint32_t, helper_ftrc_FT, (uint32_t))
+DEF_HELPER(uint32_t, helper_ftrc_DT, (uint64_t))

Modified: trunk/target-sh4/op.c
===================================================================

target-sh4/op.c +0 -229

238 lines not on this page · raw message

Modified: trunk/target-sh4/op_helper.c
===================================================================

target-sh4/op_helper.c +148 -0

157 lines not on this page · raw message

Deleted: trunk/target-sh4/op_mem.c
===================================================================

target-sh4/op_mem.c +0 -38
@@ -1,38 +0,0 @@
-/*
- *  SH4 emulation
- *
- *  Copyright (c) 2005 Samuel Tardieu
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-void glue(op_ldfl_T0_FT0, MEMSUFFIX) (void) {
-    FT0 = glue(ldfl, MEMSUFFIX) (T0);
-    RETURN();
-}
-
-void glue(op_stfl_FT0_T1, MEMSUFFIX) (void) {
-    glue(stfl, MEMSUFFIX) (T1, FT0);
-    RETURN();
-}
-
-void glue(op_ldfq_T0_DT0, MEMSUFFIX) (void) {
-    DT0 = glue(ldfq, MEMSUFFIX) (T0);
-    RETURN();
-}
-
-void glue(op_stfq_DT0_T1, MEMSUFFIX) (void) {
-    glue(stfq, MEMSUFFIX) (T1, DT0);
-    RETURN();
-}

Modified: trunk/target-sh4/translate.c
===================================================================

target-sh4/translate.c +249 -153

512 lines not on this page · raw message