]> git.proxmox.com Git - mirror_qemu.git/commitdiff
remove TARGET_* defines from translate-all.c
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 31 Mar 2010 14:54:11 +0000 (16:54 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 8 Apr 2010 19:34:12 +0000 (21:34 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
exec-all.h
target-i386/translate.c
target-mips/translate.c
target-sh4/translate.c
target-sparc/translate.c
translate-all.c

index 158ecfd6276729846b7061f07d7aa3f851c1a276..4bae1e207ef404c45659b2828e281ff7864bf018 100644 (file)
@@ -58,12 +58,8 @@ typedef struct TranslationBlock TranslationBlock;
 #define OPPARAM_BUF_SIZE (OPC_BUF_SIZE * MAX_OPC_PARAM)
 
 extern target_ulong gen_opc_pc[OPC_BUF_SIZE];
-extern target_ulong gen_opc_npc[OPC_BUF_SIZE];
-extern uint8_t gen_opc_cc_op[OPC_BUF_SIZE];
 extern uint8_t gen_opc_instr_start[OPC_BUF_SIZE];
 extern uint16_t gen_opc_icount[OPC_BUF_SIZE];
-extern target_ulong gen_opc_jump_pc[2];
-extern uint32_t gen_opc_hflags[OPC_BUF_SIZE];
 
 #include "qemu-log.h"
 
index 28d9940ef6901200cb2f924aa6ccc9592bb96551..307aabdd3026712c56bb2a8e049b39c1c88433c3 100644 (file)
@@ -72,6 +72,8 @@ static TCGv_i32 cpu_tmp2_i32, cpu_tmp3_i32;
 static TCGv_i64 cpu_tmp1_i64;
 static TCGv cpu_tmp5;
 
+static uint8_t gen_opc_cc_op[OPC_BUF_SIZE];
+
 #include "gen-icount.h"
 
 #ifdef TARGET_X86_64
index 0ade3bd48c52f3f2ec1953b1827706bea860167c..3f0543732a6579de5dfa4d16b1557263bc0f6915 100644 (file)
@@ -442,6 +442,8 @@ static TCGv cpu_dspctrl, btarget, bcond;
 static TCGv_i32 hflags;
 static TCGv_i32 fpu_fcr0, fpu_fcr31;
 
+static uint32_t gen_opc_hflags[OPC_BUF_SIZE];
+
 #include "gen-icount.h"
 
 #define gen_helper_0i(name, arg) do {                             \
index bff31885753c815482f7987ffa7894ea37fec286..3537f8c2bdbc09bce89b0c17295fb49f54dd0fa8 100644 (file)
@@ -77,6 +77,8 @@ static TCGv cpu_fregs[32];
 /* internal register indexes */
 static TCGv cpu_flags, cpu_delayed_pc;
 
+static uint32_t gen_opc_hflags[OPC_BUF_SIZE];
+
 #include "gen-icount.h"
 
 static void sh4_translate_init(void)
index 1164feb882261b28738d4058335028354c95ab81..8b988fb5cd6e7085d55b0efc9a1b4e6e0039c179 100644 (file)
@@ -66,6 +66,9 @@ static TCGv_i64 cpu_tmp64;
 /* Floating point registers */
 static TCGv_i32 cpu_fpr[TARGET_FPREGS];
 
+static target_ulong gen_opc_npc[OPC_BUF_SIZE];
+static target_ulong gen_opc_jump_pc[2];
+
 #include "gen-icount.h"
 
 typedef struct DisasContext {
index 89fcbd63cab17966d6a2c6a2745b7a9356f5f8c3..91cbbc4929397c73e864e844ce25d1d4748c2806 100644 (file)
@@ -40,14 +40,6 @@ TCGArg gen_opparam_buf[OPPARAM_BUF_SIZE];
 target_ulong gen_opc_pc[OPC_BUF_SIZE];
 uint16_t gen_opc_icount[OPC_BUF_SIZE];
 uint8_t gen_opc_instr_start[OPC_BUF_SIZE];
-#if defined(TARGET_I386)
-uint8_t gen_opc_cc_op[OPC_BUF_SIZE];
-#elif defined(TARGET_SPARC)
-target_ulong gen_opc_npc[OPC_BUF_SIZE];
-target_ulong gen_opc_jump_pc[2];
-#elif defined(TARGET_MIPS) || defined(TARGET_SH4)
-uint32_t gen_opc_hflags[OPC_BUF_SIZE];
-#endif
 
 /* XXX: suppress that */
 unsigned long code_gen_max_block_size(void)