Commit 754f307871d1be5b3de113dd347f2d083d380e70
1 parent
68db3767
Remove cpu_T for ARM once and for all.
Signed-off-by: Filip Navara <filip.navara@gmail.com>
Showing
2 changed files
with
0 additions
and
28 deletions
target-arm/exec.h
target-arm/translate.c
... | ... | @@ -79,11 +79,9 @@ static TCGv_i64 cpu_V0, cpu_V1, cpu_M0; |
79 | 79 | static TCGv_i32 cpu_R[16]; |
80 | 80 | |
81 | 81 | /* FIXME: These should be removed. */ |
82 | -static TCGv cpu_T[2]; | |
83 | 82 | static TCGv cpu_F0s, cpu_F1s; |
84 | 83 | static TCGv_i64 cpu_F0d, cpu_F1d; |
85 | 84 | |
86 | -#define ICOUNT_TEMP cpu_T[0] | |
87 | 85 | #include "gen-icount.h" |
88 | 86 | |
89 | 87 | static const char *regnames[] = |
... | ... | @@ -97,9 +95,6 @@ void arm_translate_init(void) |
97 | 95 | |
98 | 96 | cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env"); |
99 | 97 | |
100 | - cpu_T[0] = tcg_global_reg_new_i32(TCG_AREG1, "T0"); | |
101 | - cpu_T[1] = tcg_global_reg_new_i32(TCG_AREG2, "T1"); | |
102 | - | |
103 | 98 | for (i = 0; i < 16; i++) { |
104 | 99 | cpu_R[i] = tcg_global_mem_new_i32(TCG_AREG0, |
105 | 100 | offsetof(CPUState, regs[i]), |
... | ... | @@ -823,27 +818,6 @@ static inline void gen_set_pc_im(uint32_t val) |
823 | 818 | tcg_gen_movi_i32(cpu_R[15], val); |
824 | 819 | } |
825 | 820 | |
826 | -static inline void gen_movl_reg_TN(DisasContext *s, int reg, int t) | |
827 | -{ | |
828 | - TCGv tmp; | |
829 | - if (reg == 15) { | |
830 | - tmp = new_tmp(); | |
831 | - tcg_gen_andi_i32(tmp, cpu_T[t], ~1); | |
832 | - } else { | |
833 | - tmp = cpu_T[t]; | |
834 | - } | |
835 | - tcg_gen_mov_i32(cpu_R[reg], tmp); | |
836 | - if (reg == 15) { | |
837 | - dead_tmp(tmp); | |
838 | - s->is_jmp = DISAS_JUMP; | |
839 | - } | |
840 | -} | |
841 | - | |
842 | -static inline void gen_movl_reg_T1(DisasContext *s, int reg) | |
843 | -{ | |
844 | - gen_movl_reg_TN(s, reg, 1); | |
845 | -} | |
846 | - | |
847 | 821 | /* Force a TB lookup after an instruction that changes the CPU state. */ |
848 | 822 | static inline void gen_lookup_tb(DisasContext *s) |
849 | 823 | { | ... | ... |