Commit 72ffa017583a7fb51cc6b139fa83927a21913161

Authored by Filip Navara
1 parent 754f3078

Get rid of ICOUNT_TEMP support.

Since no target uses ICOUNT_TEMP anymore there's no reason to keep it.

Signed-off-by: Filip Navara <filip.navara@gmail.com>
Showing 1 changed file with 0 additions and 9 deletions
gen-icount.h
@@ -11,14 +11,7 @@ static inline void gen_icount_start(void) @@ -11,14 +11,7 @@ static inline void gen_icount_start(void)
11 return; 11 return;
12 12
13 icount_label = gen_new_label(); 13 icount_label = gen_new_label();
14 - /* FIXME: This generates lousy code. We can't use tcg_new_temp because  
15 - count needs to live over the conditional branch. To workaround this  
16 - we allow the target to supply a convenient register temporary. */  
17 -#ifndef ICOUNT_TEMP  
18 count = tcg_temp_local_new_i32(); 14 count = tcg_temp_local_new_i32();
19 -#else  
20 - count = ICOUNT_TEMP;  
21 -#endif  
22 tcg_gen_ld_i32(count, cpu_env, offsetof(CPUState, icount_decr.u32)); 15 tcg_gen_ld_i32(count, cpu_env, offsetof(CPUState, icount_decr.u32));
23 /* This is a horrid hack to allow fixing up the value later. */ 16 /* This is a horrid hack to allow fixing up the value later. */
24 icount_arg = gen_opparam_ptr + 1; 17 icount_arg = gen_opparam_ptr + 1;
@@ -26,9 +19,7 @@ static inline void gen_icount_start(void) @@ -26,9 +19,7 @@ static inline void gen_icount_start(void)
26 19
27 tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, icount_label); 20 tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, icount_label);
28 tcg_gen_st16_i32(count, cpu_env, offsetof(CPUState, icount_decr.u16.low)); 21 tcg_gen_st16_i32(count, cpu_env, offsetof(CPUState, icount_decr.u16.low));
29 -#ifndef ICOUNT_TEMP  
30 tcg_temp_free_i32(count); 22 tcg_temp_free_i32(count);
31 -#endif  
32 } 23 }
33 24
34 static void gen_icount_end(TranslationBlock *tb, int num_insns) 25 static void gen_icount_end(TranslationBlock *tb, int num_insns)