VirtualBox

Changeset 99332 in vbox


Ignore:
Timestamp:
Apr 7, 2023 12:29:10 AM (22 months ago)
Author:
vboxsync
Message:

VMM/IEM: Use IEMOP_HLP_DONE_DECODING_*EX() rather than IEM_MC_MAYBE_RAISE_FSGSBASE_XCPT and firends to do the CPUID check. bugref:10369

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r99330 r99332  
    99109910{
    99119911    IEMOP_MNEMONIC(rdfsbase, "rdfsbase Ry");
    9912     IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
     9912    IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fFsGsBase);
    99139913    if (pVCpu->iem.s.enmEffOpSize == IEMMODE_64BIT)
    99149914    {
     
    99389938{
    99399939    IEMOP_MNEMONIC(rdgsbase, "rdgsbase Ry");
    9940     IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
     9940    IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fFsGsBase);
    99419941    if (pVCpu->iem.s.enmEffOpSize == IEMMODE_64BIT)
    99429942    {
     
    99669966{
    99679967    IEMOP_MNEMONIC(wrfsbase, "wrfsbase Ry");
    9968     IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
     9968    IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fFsGsBase);
    99699969    if (pVCpu->iem.s.enmEffOpSize == IEMMODE_64BIT)
    99709970    {
     
    99959995{
    99969996    IEMOP_MNEMONIC(wrgsbase, "wrgsbase Ry");
    9997     IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
     9997    IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fFsGsBase);
    99989998    if (pVCpu->iem.s.enmEffOpSize == IEMMODE_64BIT)
    99999999    {
  • trunk/src/VBox/VMM/include/IEMMc.h

    r99331 r99332  
    191191    do { \
    192192        if (   pVCpu->iem.s.enmCpuMode != IEMMODE_64BIT \
    193             || !IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fFsGsBase \
    194193            || !(pVCpu->cpum.GstCtx.cr4 & X86_CR4_FSGSBASE)) \
    195194            return iemRaiseUndefinedOpcode(pVCpu); \
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