VirtualBox

Changeset 16066 in vbox for trunk/src


Ignore:
Timestamp:
Jan 20, 2009 7:47:12 AM (16 years ago)
Author:
vboxsync
Message:

SSE truncation from QEMU trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/target-i386/translate.c

    r15982 r16066  
    647647    /* For other segments this check is waste of time, and also TCG is unable to cope with this code,
    648648       for data/stack segments, as expects alive cpu_T[0] */
    649     if (reg != R_GS) 
     649    if (reg != R_GS)
    650650        return;
    651651
     
    664664    tcg_gen_ld32u_tl(t0, cpu_env, offsetof(CPUState, eflags) + REG_L_OFFSET);
    665665    tcg_gen_andi_tl(t0, t0, VM_MASK);
    666     tcg_gen_brcondi_i32(TCG_COND_NE, t0, 0, skip_label);   
     666    tcg_gen_brcondi_i32(TCG_COND_NE, t0, 0, skip_label);
    667667    tcg_gen_movi_tl(t0, reg);
    668    
     668
    669669    tcg_gen_helper_0_1(helper_sync_seg, t0);
    670670
     
    41384138                    case 0x21: case 0x31: /* pmovsxbd, pmovzxbd */
    41394139                    case 0x24: case 0x34: /* pmovsxwq, pmovzxwq */
    4140                         tcg_gen_qemu_ld32u(cpu_tmp2_i32, cpu_A0,
     4140                        tcg_gen_qemu_ld32u(cpu_tmp0, cpu_A0,
    41414141                                          (s->mem_index >> 2) - 1);
     4142                        tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_tmp0);
    41424143                        tcg_gen_st_i32(cpu_tmp2_i32, cpu_env, op2_offset +
    41434144                                        offsetof(XMMReg, XMM_L(0)));
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