Changeset 37675 in vbox for trunk/src/recompiler/gen-icount.h
- Timestamp:
- Jun 29, 2011 7:07:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/gen-icount.h
r36170 r37675 12 12 13 13 icount_label = gen_new_label(); 14 /* FIXME: This generates lousy code. We can't use tcg_new_temp because15 count needs to live over the conditional branch. To workaround this16 we allow the target to supply a convenient register temporary. */17 #ifndef ICOUNT_TEMP18 14 count = tcg_temp_local_new_i32(); 19 #else20 count = ICOUNT_TEMP;21 #endif22 15 tcg_gen_ld_i32(count, cpu_env, offsetof(CPUState, icount_decr.u32)); 23 16 /* This is a horrid hack to allow fixing up the value later. */ … … 27 20 tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, icount_label); 28 21 tcg_gen_st16_i32(count, cpu_env, offsetof(CPUState, icount_decr.u16.low)); 29 #ifndef ICOUNT_TEMP30 22 tcg_temp_free_i32(count); 31 #endif32 23 } 33 24
Note:
See TracChangeset
for help on using the changeset viewer.