[4323] Complete the TCG conversion
Revision: 4323
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4323 Author: blueswir1 Date: 2008-05-04 11:58:45 +0000 (Sun, 04 May 2008)
Log Message:
-----------
Complete the TCG conversion
Modified Paths:
--------------
trunk/configure
trunk/target-sparc/cpu.h
trunk/target-sparc/exec.h
trunk/target-sparc/helper.h
trunk/target-sparc/op_helper.c
trunk/target-sparc/translate.c
Modified: trunk/configure
===================================================================
configure +6 -0
@@ -1291,24 +1291,30 @@ ;; sparc) echo "TARGET_ARCH=sparc" >> $config_mak + echo "CONFIG_NO_DYNGEN_OP=yes" >> $config_mak echo "#define TARGET_ARCH \"sparc\"" >> $config_h echo "#define TARGET_SPARC 1" >> $config_h + echo "#define CONFIG_NO_DYNGEN_OP 1" >> $config_h ;; sparc64) echo "TARGET_ARCH=sparc64" >> $config_mak + echo "CONFIG_NO_DYNGEN_OP=yes" >> $config_mak echo "#define TARGET_ARCH \"sparc64\"" >> $config_h echo "#define TARGET_SPARC 1" >> $config_h echo "#define TARGET_SPARC64 1" >> $config_h + echo "#define CONFIG_NO_DYNGEN_OP 1" >> $config_h elfload32="yes" ;; sparc32plus) echo "TARGET_ARCH=sparc64" >> $config_mak echo "TARGET_ABI_DIR=sparc" >> $config_mak echo "TARGET_ARCH2=sparc32plus" >> $config_mak + echo "CONFIG_NO_DYNGEN_OP=yes" >> $config_mak echo "#define TARGET_ARCH \"sparc64\"" >> $config_h echo "#define TARGET_SPARC 1" >> $config_h echo "#define TARGET_SPARC64 1" >> $config_h echo "#define TARGET_ABI32 1" >> $config_h + echo "#define CONFIG_NO_DYNGEN_OP 1" >> $config_h ;; *) echo "Unsupported target CPU"
Modified: trunk/target-sparc/cpu.h
===================================================================
target-sparc/cpu.h +2 -4
@@ -250,7 +250,7 @@float_status fp_status;#if defined(TARGET_SPARC64 )#define MAXTL 4 -uint64_t t0, t1, t2; +uint64_t t0;trap_state *tsptr;trap_state ts[MAXTL ];uint32_t xcc;/* Extended integer condition codes */
@@ -271,9 +271,7 @@uint64_t hpstate, htstate[MAXTL ], hintp, htba, hver, hstick_cmpr, ssr;void *hstick;// UA 2005 #endif -#if !defined(TARGET_SPARC64 ) && !defined(reg_T2) -target_ulong t2; -#endif +target_ulong t1, t2; } CPUSPARCState;#if defined(TARGET_SPARC64 )#define GET_FSR32 (env) (env->fsr & 0xcfc1ffff)
Modified: trunk/target-sparc/exec.h
===================================================================
target-sparc/exec.h +0 -2
@@ -7,12 +7,10 @@#ifdef TARGET_SPARC64 #define T0 (env->t0) -#define T1 (env->t1)#define T2 (env->t2)#define REGWPTR env->regwptr#else register uint32_t T0 asm(AREG1); -register uint32_t T1 asm(AREG2);#undef REG_REGWPTR // Broken#ifdef REG_REGWPTR
Modified: trunk/target-sparc/helper.h
===================================================================
target-sparc/helper.h +7 -0
@@ -45,6 +45,13 @@ target_ulong TCG_HELPER_PROTO helper_udiv(target_ulong a, target_ulong b); target_ulong TCG_HELPER_PROTO helper_sdiv(target_ulong a, target_ulong b); uint64_t TCG_HELPER_PROTO helper_pack64(target_ulong high, target_ulong low); +void TCG_HELPER_PROTO helper_std_i386(target_ulong addr, int mem_idx); +void TCG_HELPER_PROTO helper_stdf(target_ulong addr, int mem_idx); +void TCG_HELPER_PROTO helper_lddf(target_ulong addr, int mem_idx); +#if defined(CONFIG_USER_ONLY ) +void TCG_HELPER_PROTO helper_ldqf(target_ulong addr); +void TCG_HELPER_PROTO helper_stqf(target_ulong addr); +#endif uint64_t TCG_HELPER_PROTO helper_ld_asi(target_ulong addr, int asi,int size,int sign); void TCG_HELPER_PROTO helper_st_asi(target_ulong addr, uint64_t val, int asi,
Modified: trunk/target-sparc/op_helper.c
===================================================================
target-sparc/op_helper.c +103 -0
109 lines not on this page · raw message
Modified: trunk/target-sparc/translate.c
===================================================================
target-sparc/translate.c +21 -36
114 lines not on this page · raw message