Revision a7812ae4 gen-icount.h

b/gen-icount.h
5 5

  
6 6
static inline void gen_icount_start(void)
7 7
{
8
    TCGv count;
8
    TCGv_i32 count;
9 9

  
10 10
    if (!use_icount)
11 11
        return;
......
15 15
       count needs to live over the conditional branch.  To workaround this
16 16
       we allow the target to supply a convenient register temporary.  */
17 17
#ifndef ICOUNT_TEMP
18
    count = tcg_temp_local_new(TCG_TYPE_I32);
18
    count = tcg_temp_local_new_i32();
19 19
#else
20 20
    count = ICOUNT_TEMP;
21 21
#endif
......
27 27
    tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, icount_label);
28 28
    tcg_gen_st16_i32(count, cpu_env, offsetof(CPUState, icount_decr.u16.low));
29 29
#ifndef ICOUNT_TEMP
30
    tcg_temp_free(count);
30
    tcg_temp_free_i32(count);
31 31
#endif
32 32
}
33 33

  
......
42 42

  
43 43
static void inline gen_io_start(void)
44 44
{
45
    TCGv tmp = tcg_const_i32(1);
45
    TCGv_i32 tmp = tcg_const_i32(1);
46 46
    tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUState, can_do_io));
47
    tcg_temp_free(tmp);
47
    tcg_temp_free_i32(tmp);
48 48
}
49 49

  
50 50
static inline void gen_io_end(void)
51 51
{
52
    TCGv tmp = tcg_const_i32(0);
52
    TCGv_i32 tmp = tcg_const_i32(0);
53 53
    tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUState, can_do_io));
54
    tcg_temp_free(tmp);
54
    tcg_temp_free_i32(tmp);
55 55
}
56 56

  

Also available in: Unified diff