VirtualBox

Changeset 42724 in vbox for trunk


Ignore:
Timestamp:
Aug 9, 2012 7:02:36 PM (12 years ago)
Author:
vboxsync
Message:

IEM: Fixed a copy&past bug in fnsave wrt FTW. Added a verification/rem kludge to STI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImpl.cpp.h

    r42704 r42724  
    40154015    IEMMISC_SET_EFL(pIemCpu, pCtx, fEfl);
    40164016    iemRegAddToRip(pIemCpu, cbInstr);
    4017     if (!(fEflOld & X86_EFL_IF) && (fEfl & X86_EFL_IF))
     4017    if ((!(fEflOld & X86_EFL_IF) && (fEfl & X86_EFL_IF)) || IEM_VERIFICATION_ENABLED(pIemCpu))
    40184018        EMSetInhibitInterruptsPC(IEMCPU_TO_VMCPU(pIemCpu), pCtx->rip);
    40194019    Log2(("STI: %#x -> %#x\n", fEflOld, fEfl));
     
    44584458
    44594459/**
    4460  * Commmon routine for fnstenv and fnsave.
     4460 * Commmon routine for fldenv and frstor
    44614461 *
    44624462 * @param   uPtr                Where to store the state.
     
    45884588    pCtx->fpu.FCW   = 0x37f;
    45894589    pCtx->fpu.FSW   = 0;
    4590     pCtx->fpu.FTW   = 0xffff;       /* 11 - empty */
     4590    pCtx->fpu.FTW   = 0x00;       /* 0 - empty */
    45914591    pCtx->fpu.FPUDP = 0;
    45924592    pCtx->fpu.DS    = 0;
     
    45974597    pCtx->fpu.FOP   = 0;
    45984598
    4599 
    46004599    iemHlpUsedFpu(pIemCpu);
    46014600    iemRegAddToRip(pIemCpu, cbInstr);
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