VirtualBox

Changeset 101640 in vbox for trunk/include/iprt/x86.h


Ignore:
Timestamp:
Oct 28, 2023 1:01:28 AM (13 months ago)
Author:
vboxsync
Message:

VMM/IEM: Emit native code for BltIn_CheckIrq. bugref:10371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r101516 r101640  
    49214921#define X86_SIB_SCALE_SHIFT   6
    49224922#ifndef VBOX_FOR_DTRACE_LIB
     4923/** @def X86_MODRM_SIB
     4924 * @param   a_BaseReg   The base register value (0..7).
     4925 * @param   a_IndexReg  The index register value (0..7).
     4926 * @param   a_Scale     The left shift (0..3) to be applied to the index
     4927 *                      register (0 = none, 1 = x2, 2 = x4, 3 = x8).
     4928 *  */
     4929# define X86_SIB_MAKE(a_BaseReg, a_IndexReg, a_Scale) \
     4930    (((a_Scale) << X86_SIB_SCALE_SHIFT) | ((a_IndexReg) << X86_SIB_INDEX_SHIFT) | (a_BaseReg))
     4931
    49234932AssertCompile((X86_SIB_BASE_MASK | X86_SIB_INDEX_MASK | X86_SIB_SCALE_MASK) == 0xff);
    49244933AssertCompile((X86_SIB_INDEX_MASK >> X86_SIB_INDEX_SHIFT) == X86_SIB_INDEX_SMASK);
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