15
15
icount_label = gen_new_label();
16
16
count = tcg_temp_local_new_i32();
17
tcg_gen_ld_i32(count, cpu_env, offsetof(CPUState, icount_decr.u32));
17
tcg_gen_ld_i32(count, cpu_env, offsetof(CPUArchState, icount_decr.u32));
18
18
/* This is a horrid hack to allow fixing up the value later. */
19
19
icount_arg = gen_opparam_ptr + 1;
20
20
tcg_gen_subi_i32(count, count, 0xdeadbeef);
22
22
tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, icount_label);
23
tcg_gen_st16_i32(count, cpu_env, offsetof(CPUState, icount_decr.u16.low));
23
tcg_gen_st16_i32(count, cpu_env, offsetof(CPUArchState, icount_decr.u16.low));
24
24
tcg_temp_free_i32(count);