VirtualBox

Changeset 72496 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Jun 10, 2018 5:21:36 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
122981
Message:

IEM: Use pVCpu->cpum.s.GstCtx, avoid passing pCtx as a parameter or having it as a local variable.

File:
1 edited

Legend:

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

    r72495 r72496  
    636636/** @def IEM_CTX_ASSERT
    637637 * Asserts that the @a a_fExtrnMbz is present in the CPU context.
    638  * @param   a_pCtx          The CPUMCTX structure.
     638 * @param   a_pVCpu         The cross context virtual CPU structure of the calling thread.
    639639 * @param   a_fExtrnMbz     The mask of CPUMCTX_EXTRN_XXX flags that must be zero.
    640640 */
    641 #define IEM_CTX_ASSERT(a_pCtx, a_fExtrnMbz)     Assert(!((a_pCtx)->fExtrn & (a_fExtrnMbz)))
     641#define IEM_CTX_ASSERT(a_pVCpu, a_fExtrnMbz)     Assert(!((a_pVCpu)->cpum.GstCtx.fExtrn & (a_fExtrnMbz)))
    642642
    643643/** @def IEM_CTX_IMPORT_RET
     
    648648 * Returns on import failure.
    649649 *
    650  * @param   a_pVCpu         The cross context virtual CPU structure.
    651  * @param   a_pCtx          The CPUMCTX structure.
     650 * @param   a_pVCpu         The cross context virtual CPU structure of the calling thread.
    652651 * @param   a_fExtrnImport  The mask of CPUMCTX_EXTRN_XXX flags to import.
    653652 */
    654 #define IEM_CTX_IMPORT_RET(a_pVCpu, a_pCtx, a_fExtrnImport) \
     653#define IEM_CTX_IMPORT_RET(a_pVCpu, a_fExtrnImport) \
    655654    do { \
    656         if (!((a_pCtx)->fExtrn & (a_fExtrnImport))) \
     655        if (!((a_pVCpu)->cpum.GstCtx.fExtrn & (a_fExtrnImport))) \
    657656        { /* likely */ } \
    658657        else \
     
    668667 * Will call the keep to import the bits as needed.
    669668 *
    670  * @param   a_pVCpu         The cross context virtual CPU structure.
    671  * @param   a_pCtx          The CPUMCTX structure.
     669 * @param   a_pVCpu         The cross context virtual CPU structure of the calling thread.
    672670 * @param   a_fExtrnImport  The mask of CPUMCTX_EXTRN_XXX flags to import.
    673671 */
    674 #define IEM_CTX_IMPORT_NORET(a_pVCpu, a_pCtx, a_fExtrnImport) \
     672#define IEM_CTX_IMPORT_NORET(a_pVCpu, a_fExtrnImport) \
    675673    do { \
    676         if (!((a_pCtx)->fExtrn & (a_fExtrnImport))) \
     674        if (!((a_pVCpu)->cpum.GstCtx.fExtrn & (a_fExtrnImport))) \
    677675        { /* likely */ } \
    678676        else \
     
    690688 * Jumps on import failure.
    691689 *
    692  * @param   a_pVCpu         The cross context virtual CPU structure.
    693  * @param   a_pCtx          The CPUMCTX structure.
     690 * @param   a_pVCpu         The cross context virtual CPU structure of the calling thread.
    694691 * @param   a_fExtrnImport  The mask of CPUMCTX_EXTRN_XXX flags to import.
    695692 */
    696 #define IEM_CTX_IMPORT_JMP(a_pVCpu, a_pCtx, a_fExtrnImport) \
     693#define IEM_CTX_IMPORT_JMP(a_pVCpu, a_fExtrnImport) \
    697694    do { \
    698         if (!((a_pCtx)->fExtrn & (a_fExtrnImport))) \
     695        if (!((a_pVCpu)->cpum.GstCtx.fExtrn & (a_fExtrnImport))) \
    699696        { /* likely */ } \
    700697        else \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette