VirtualBox

Changeset 99355 in vbox


Ignore:
Timestamp:
Apr 8, 2023 12:40:56 AM (20 months ago)
Author:
vboxsync
Message:

VMM/IEM: Mojo improvments for IEM_MC_MAYBE_RAISE_FSGSBASE_XCPT. bugref:10369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/IEMMc.h

    r99354 r99355  
    152152#define IEM_MC_MAYBE_RAISE_FSGSBASE_XCPT() \
    153153    do { \
    154         if (RT_LIKELY(   pVCpu->iem.s.enmCpuMode == IEMMODE_64BIT \
    155                       && (pVCpu->cpum.GstCtx.cr4 & X86_CR4_FSGSBASE))) \
     154        if (RT_LIKELY(   ((pVCpu->cpum.GstCtx.cr4 & X86_CR4_FSGSBASE) | pVCpu->iem.s.enmCpuMode) \
     155                      == (X86_CR4_FSGSBASE | IEMMODE_64BIT))) \
    156156        { /* probable */ } \
    157157        else return iemRaiseUndefinedOpcode(pVCpu); \
    158158    } while (0)
     159AssertCompile(X86_CR4_FSGSBASE > UINT8_MAX);
    159160#define IEM_MC_MAYBE_RAISE_NON_CANONICAL_ADDR_GP0(a_u64Addr) \
    160161    do { \
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