VirtualBox

Changeset 97620 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Nov 21, 2022 2:20:25 AM (2 years ago)
Author:
vboxsync
Message:

VMM/IEM: Corrected a stack register update bug when RETF is returning to 64-bit code - was just loading SP instead of the whole RSP. bugref:9898

File:
1 edited

Legend:

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

    r97615 r97620  
    25462546        else
    25472547            pVCpu->cpum.GstCtx.ss.u64Base    = X86DESC_BASE(&DescSs.Legacy);
    2548         if (!pVCpu->cpum.GstCtx.ss.Attr.n.u1DefBig)
     2548        if (!pVCpu->cpum.GstCtx.ss.Attr.n.u1DefBig && pVCpu->iem.s.enmCpuMode != IEMMODE_64BIT)
    25492549            pVCpu->cpum.GstCtx.sp            = (uint16_t)uNewOuterRsp;
    25502550        else
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