VirtualBox

Changeset 96626 in vbox


Ignore:
Timestamp:
Sep 7, 2022 11:36:22 AM (2 years ago)
Author:
vboxsync
Message:

VMM/IEM: Some fixes to the fucomi[p] instruction handling, need to update eflags register and the top of stack field in FSW correctly, bugref:9898

File:
1 edited

Legend:

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

    r96539 r96626  
    94269426    {
    94279427        uint32_t u32Eflags = pfnAImpl(pFpuCtx, &u16Fsw, &pFpuCtx->aRegs[0].r80, &pFpuCtx->aRegs[iStReg].r80);
    9428         NOREF(u32Eflags);
    94299428
    94309429        pFpuCtx->FSW &= ~X86_FSW_C1;
     
    94349433        {
    94359434            pVCpu->cpum.GstCtx.eflags.u &= ~(X86_EFL_OF | X86_EFL_SF | X86_EFL_AF | X86_EFL_ZF | X86_EFL_PF | X86_EFL_CF);
    9436             pVCpu->cpum.GstCtx.eflags.u |= pVCpu->cpum.GstCtx.eflags.u & (X86_EFL_ZF | X86_EFL_PF | X86_EFL_CF);
     9435            pVCpu->cpum.GstCtx.eflags.u |= u32Eflags & (X86_EFL_ZF | X86_EFL_PF | X86_EFL_CF);
    94379436        }
    94389437    }
     
    94619460    {
    94629461        pFpuCtx->FTW &= ~RT_BIT(iReg1);
    9463         pFpuCtx->FSW &= X86_FSW_TOP_MASK;
    9464         pFpuCtx->FSW |= ((iReg1 + 7) & X86_FSW_TOP_SMASK) << X86_FSW_TOP_SHIFT;
     9462        iemFpuStackIncTop(pVCpu);
    94659463    }
    94669464
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