Skip to contentSkip to conversation

[5354] target-alpha: convert FP ops to TCG

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

lore
Share & tools
lore
#0 lore raw

Revision: 5354

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5354
Author:   aurel32
Date:     2008-09-29 17:21:28 +0000 (Mon, 29 Sep 2008)

Log Message:
-----------
target-alpha: convert FP ops to TCG

- Convert FP ops to TCG
- Fix S format
- Implement F and G formats (untested)
- Fix MF_FPCR an MT_FPCR
- Fix FTOIS, FTOIT, ITOFF, ITOFS, ITOFT
- Fix CPYSN, CPYSE

Modified Paths:
--------------
trunk/target-alpha/cpu.h
trunk/target-alpha/exec.h
trunk/target-alpha/helper.c
trunk/target-alpha/helper.h
trunk/target-alpha/op.c
trunk/target-alpha/op_helper.c
trunk/target-alpha/op_helper.h
trunk/target-alpha/op_mem.h
trunk/target-alpha/translate.c

Removed Paths:
-------------
trunk/target-alpha/op_helper_mem.h
trunk/target-alpha/op_template.h

Modified: trunk/target-alpha/cpu.h
===================================================================

target-alpha/cpu.h +0 -2
@@ -277,8 +277,6 @@
      */
     target_ulong t0, t1;
 #endif
-    /* */
-    double ft0, ft1, ft2;
 
     /* Those resources are used only in Qemu core */
     CPU_COMMON

Modified: trunk/target-alpha/exec.h
===================================================================

target-alpha/exec.h +0 -3
@@ -44,9 +44,6 @@
 
 #define PARAM(n) ((uint64_t)PARAM##n)
 #define SPARAM(n) ((int32_t)PARAM##n)
-#define FT0 (env->ft0)
-#define FT1 (env->ft1)
-#define FT2 (env->ft2)
 #define FP_STATUS (env->fp_status)
 
 #if defined (DEBUG_OP)

Modified: trunk/target-alpha/helper.c
===================================================================

target-alpha/helper.c +0 -6
@@ -434,12 +434,6 @@
         if ((i % 3) == 2)
             cpu_fprintf(f, "\n");
     }
-    cpu_fprintf(f, "FT " TARGET_FMT_lx " " TARGET_FMT_lx " " TARGET_FMT_lx,
-                *((uint64_t *)(&env->ft0)), *((uint64_t *)(&env->ft1)),
-                *((uint64_t *)(&env->ft2)));
-    cpu_fprintf(f, "\nMEM " TARGET_FMT_lx " %d %d\n",
-                ldq_raw(0x000000004007df60ULL),
-                (uint8_t *)(&env->ft0), (uint8_t *)(&env->fir[0]));
 }
 
 void cpu_dump_EA (target_ulong EA)

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

target-alpha/helper.h +67 -0

70 lines not on this page · raw message

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

target-alpha/op.c +0 -474

488 lines not on this page · raw message

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

target-alpha/op_helper.c +452 -517

1,214 lines not on this page · raw message

Modified: trunk/target-alpha/op_helper.h
===================================================================

target-alpha/op_helper.h +0 -59

74 lines not on this page · raw message

Deleted: trunk/target-alpha/op_helper_mem.h
===================================================================

target-alpha/op_helper_mem.h +0 -40
@@ -1,40 +0,0 @@
-/*
- *  Alpha emulation cpu micro-operations helpers for memory accesses for qemu.
- *
- *  Copyright (c) 2007 Jocelyn Mayer
- *
- * 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
- */
-
-/* XXX: TODO */
-double glue(helper_ldff, MEMSUFFIX) (target_ulong ea)
-{
-    return 0;
-}
-
-void glue(helper_stff, MEMSUFFIX) (target_ulong ea, double op)
-{
-}
-
-double glue(helper_ldfg, MEMSUFFIX) (target_ulong ea)
-{
-    return 0;
-}
-
-void glue(helper_stfg, MEMSUFFIX) (target_ulong ea, double op)
-{
-}
-
-#undef MEMSUFFIX

Modified: trunk/target-alpha/op_mem.h
===================================================================

target-alpha/op_mem.h +0 -27
@@ -90,31 +90,4 @@
 ALPHA_ST_OP(l_c, stl_c);
 ALPHA_ST_OP(q_c, stq_c);
 
-#define ALPHA_LDF_OP(name, op)                                                \
-void OPPROTO glue(glue(op_ld, name), MEMSUFFIX) (void)                        \
-{                                                                             \
-    print_mem_EA(T0);                                                         \
-    FT1 = glue(op, MEMSUFFIX)(T0);                                            \
-    RETURN();                                                                 \
-}
-
-#define ALPHA_STF_OP(name, op)                                                \
-void OPPROTO glue(glue(op_st, name), MEMSUFFIX) (void)                        \
-{                                                                             \
-    print_mem_EA(T0);                                                         \
-    glue(op, MEMSUFFIX)(T0, FT1);                                             \
-    RETURN();                                                                 \
-}
-
-ALPHA_LDF_OP(t, ldfq);
-ALPHA_STF_OP(t, stfq);
-ALPHA_LDF_OP(s, ldfl);
-ALPHA_STF_OP(s, stfl);
-
-/* VAX floating point */
-ALPHA_LDF_OP(f, helper_ldff);
-ALPHA_STF_OP(f, helper_stff);
-ALPHA_LDF_OP(g, helper_ldfg);
-ALPHA_STF_OP(g, helper_stfg);
-
 #undef MEMSUFFIX

Deleted: trunk/target-alpha/op_template.h
===================================================================

target-alpha/op_template.h +0 -85

85 lines not on this page · raw message

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

target-alpha/translate.c +267 -269

936 lines not on this page · raw message