VirtualBox

Ignore:
Timestamp:
Jun 20, 2023 11:10:27 PM (18 months ago)
Author:
vboxsync
Message:

VMM/IEM: Recompiler fixes. Gets thru the bios now. bugref:10369

File:
1 edited

Legend:

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

    r100222 r100231  
    38353835 */
    38363836#define IEM_GET_MODRM_RM_8(a_bRm)           ( ((a_bRm) & X86_MODRM_RM_MASK) )
     3837
     3838/**
     3839 * Gets the register (reg) part of a ModR/M encoding as an extended 8-bit
     3840 * register index, with REX.R added in.
     3841 *
     3842 * For use during decoding.
     3843 *
     3844 * @see iemGRegRefU8Ex, iemGRegFetchU8Ex, iemGRegStoreU8Ex
     3845 */
     3846#define IEM_GET_MODRM_REG_EX8(a_pVCpu, a_bRm) \
     3847    (   (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_REX) \
     3848     || !((a_bRm) & (4 << X86_MODRM_REG_SHIFT)) /* IEM_GET_MODRM_REG(pVCpu, a_bRm) < 4 */ \
     3849     ? IEM_GET_MODRM_REG(pVCpu, a_bRm) : (((a_bRm) >> X86_MODRM_REG_SHIFT) & 3) | 16)
     3850/**
     3851 * Gets the r/m part of a ModR/M encoding as an extended 8-bit register index,
     3852 * with REX.B added in.
     3853 *
     3854 * For use during decoding.
     3855 *
     3856 * @see iemGRegRefU8Ex, iemGRegFetchU8Ex, iemGRegStoreU8Ex
     3857 */
     3858#define IEM_GET_MODRM_RM_EX8(a_pVCpu, a_bRm) \
     3859    (   (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_REX) \
     3860     || !((a_bRm) & 4) /* IEM_GET_MODRM_RM(pVCpu, a_bRm) < 4 */ \
     3861     ? IEM_GET_MODRM_RM(pVCpu, a_bRm) : ((a_bRm) & 3) | 16)
    38373862
    38383863/**
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