VirtualBox

Ignore:
Timestamp:
Jun 29, 2011 7:07:14 AM (13 years ago)
Author:
vboxsync
Message:

rem: Synced with v0.12.5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/gen-icount.h

    r36170 r37675  
    1212
    1313    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
    1814    count = tcg_temp_local_new_i32();
    19 #else
    20     count = ICOUNT_TEMP;
    21 #endif
    2215    tcg_gen_ld_i32(count, cpu_env, offsetof(CPUState, icount_decr.u32));
    2316    /* This is a horrid hack to allow fixing up the value later.  */
     
    2720    tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, icount_label);
    2821    tcg_gen_st16_i32(count, cpu_env, offsetof(CPUState, icount_decr.u16.low));
    29 #ifndef ICOUNT_TEMP
    3022    tcg_temp_free_i32(count);
    31 #endif
    3223}
    3324
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette