[5360] target-alpha: convert palcode ops to TCG
Revision: 5360
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5360 Author: aurel32 Date: 2008-09-30 06:45:44 +0000 (Tue, 30 Sep 2008)
Log Message:
-----------
target-alpha: convert palcode ops to TCG
Modified Paths:
--------------
trunk/configure
trunk/target-alpha/exec.h
trunk/target-alpha/helper.c
trunk/target-alpha/helper.h
trunk/target-alpha/op_helper.c
trunk/target-alpha/translate.c
Removed Paths:
-------------
trunk/target-alpha/op.c
trunk/target-alpha/op_helper.h
trunk/target-alpha/op_mem.h
Modified: trunk/configure
===================================================================
configure +0 -2
@@ -1425,10 +1425,8 @@ ;; alpha) echo "TARGET_ARCH=alpha" >> $config_mak - echo "CONFIG_DYNGEN_OP=yes" >> $config_mak echo "#define TARGET_ARCH \"alpha\"" >> $config_h echo "#define TARGET_ALPHA 1" >> $config_h - echo "#define CONFIG_DYNGEN_OP 1" >> $config_h ;; arm|armeb) echo "TARGET_ARCH=arm" >> $config_mak
Modified: trunk/target-alpha/exec.h
===================================================================
target-alpha/exec.h +0 -19
@@ -29,29 +29,10 @@ register struct CPUAlphaState *env asm(AREG0); -#if TARGET_LONG_BITS >HOST_LONG_BITS - -/* no registers can be used */ -#define T0 (env->t0) -#define T1 (env->t1) - -#else - -register uint64_t T0 asm(AREG1); -register uint64_t T1 asm(AREG2); - -#endif /* TARGET_LONG_BITS > HOST_LONG_BITS */ -#define PARAM (n) ((uint64_t)PARAM##n)#define SPARAM (n) ((int32_t)PARAM##n)#define FP_STATUS (env->fp_status) -#if defined (DEBUG_OP ) -#define RETURN () __asm__ __volatile__("nop" : : : "memory"); -#else -#define RETURN () __asm__ __volatile__("" : : : "memory"); -#endif -#include "cpu.h" #include "exec-all.h"
Modified: trunk/target-alpha/helper.c
===================================================================
target-alpha/helper.c +0 -10
@@ -436,13 +436,3 @@ } } -void cpu_dump_EA (target_ulong EA ) -{ -FILE *f; - -if (logfile) - f = logfile; -else - f = stdout; -fprintf (f,"Memory access at address " TARGET_FMT_lx"\n" ,EA ); -}
Modified: trunk/target-alpha/helper.h
===================================================================
target-alpha/helper.h +23 -0
@@ -108,3 +108,26 @@ DEF_HELPER(uint64_t, helper_cvtqlv, (uint64_t)) DEF_HELPER(uint64_t, helper_cvtqlsv, (uint64_t)) +#if !defined (CONFIG_USER_ONLY) +DEF_HELPER(void, helper_hw_rei, (void)) +DEF_HELPER(void, helper_hw_ret, (uint64_t)) +DEF_HELPER(uint64_t, helper_mfpr, (int, uint64_t)) +DEF_HELPER(void, helper_mtpr, (int, uint64_t)) +DEF_HELPER(void, helper_set_alt_mode, (void)) +DEF_HELPER(void, helper_restore_mode, (void)) + +DEF_HELPER(uint64_t, helper_ld_virt_to_phys, (uint64_t)) +DEF_HELPER(uint64_t, helper_st_virt_to_phys, (uint64_t)) +DEF_HELPER(void, helper_ldl_raw, (uint64_t, uint64_t)) +DEF_HELPER(void, helper_ldq_raw, (uint64_t, uint64_t)) +DEF_HELPER(void, helper_ldl_l_raw, (uint64_t, uint64_t)) +DEF_HELPER(void, helper_ldq_l_raw, (uint64_t, uint64_t)) +DEF_HELPER(void, helper_ldl_kernel, (uint64_t, uint64_t)) +DEF_HELPER(void, helper_ldq_kernel, (uint64_t, uint64_t)) +DEF_HELPER(void, helper_ldl_data, (uint64_t, uint64_t)) +DEF_HELPER(void, helper_ldq_data, (uint64_t, uint64_t)) +DEF_HELPER(void, helper_stl_raw, (uint64_t, uint64_t)) +DEF_HELPER(void, helper_stq_raw, (uint64_t, uint64_t)) +DEF_HELPER(uint64_t, helper_stl_c_raw, (uint64_t, uint64_t)) +DEF_HELPER(uint64_t, helper_stq_c_raw, (uint64_t, uint64_t)) +#endif
Deleted: trunk/target-alpha/op.c
===================================================================
target-alpha/op.c +0 -99
99 lines not on this page · raw message
Modified: trunk/target-alpha/op_helper.c
===================================================================
target-alpha/op_helper.c +129 -26
217 lines not on this page · raw message
Deleted: trunk/target-alpha/op_helper.h
===================================================================
target-alpha/op_helper.h +0 -46
46 lines not on this page · raw message
Deleted: trunk/target-alpha/op_mem.h
===================================================================
target-alpha/op_mem.h +0 -93
93 lines not on this page · raw message
Modified: trunk/target-alpha/translate.c
===================================================================
target-alpha/translate.c +197 -241
494 lines not on this page · raw message