VirtualBox

Changeset 104018 in vbox for trunk/src/VBox/VMM/testcase


Ignore:
Timestamp:
Mar 24, 2024 12:14:18 AM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162406
Message:

VMM/IEM: Dropped the argument and local variable counts from IEM_MC_BEGIN. bugref:10370

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstIEMCheckMc.cpp

    r104017 r104018  
    566566
    567567#define IEM_ARG_CHECK_CALLBACK(a_idx, a_User) int RT_CONCAT(iArgCheck_,a_idx); NOREF(RT_CONCAT(iArgCheck_,a_idx))
    568 #define IEM_MC_BEGIN(a_cArgs, a_cLocals, a_fMcFlags, a_fCImplFlags) \
     568#define IEM_MC_BEGIN(a_fMcFlags, a_fCImplFlags) \
    569569    { \
    570         const uint8_t  cArgs    = (a_cArgs); NOREF(cArgs); \
    571         const uint8_t  cLocals  = (a_cLocals); NOREF(cLocals); \
    572         const uint32_t fMcBegin = (((a_cArgs) + (a_cLocals)) << 23) + (a_fMcFlags) + (a_fCImplFlags); \
    573         IEM_REPEAT(a_cArgs, IEM_ARG_CHECK, 0); \
     570        const uint32_t fMcBegin = ((a_fMcFlags) + (a_fCImplFlags))
    574571
    575572#define IEM_MC_END() \
     
    636633
    637634#define IEM_MC_ARG(a_Type, a_Name, a_iArg) (void)fMcBegin; \
    638     RT_CONCAT(iArgCheck_,a_iArg) = 1; NOREF(RT_CONCAT(iArgCheck_,a_iArg)); \
     635    int RT_CONCAT(iArgCheck_,a_iArg) = 1; NOREF(RT_CONCAT(iArgCheck_,a_iArg)); \
    639636    int RT_CONCAT3(iArgCheck_,a_iArg,a_Name); \
    640     AssertCompile((a_iArg) < cArgs); \
    641637    int RT_CONCAT(iVarCheck_,a_Name) = 0; \
    642638    a_Type a_Name; \
    643639    NOREF(a_Name)
    644640#define IEM_MC_ARG_CONST(a_Type, a_Name, a_Value, a_iArg) (void)fMcBegin; \
    645     RT_CONCAT(iArgCheck_, a_iArg) = 1; NOREF(RT_CONCAT(iArgCheck_,a_iArg)); \
     641    int RT_CONCAT(iArgCheck_, a_iArg) = 1; NOREF(RT_CONCAT(iArgCheck_,a_iArg)); \
    646642    int RT_CONCAT3(iArgCheck_,a_iArg,a_Name); \
    647     AssertCompile((a_iArg) < cArgs); \
    648643    int RT_CONCAT(iVarCheck_,a_Name) = 0; \
    649644    a_Type const a_Name = (a_Value); \
     
    653648
    654649#define IEM_MC_ARG_LOCAL_REF(a_Type, a_Name, a_Local, a_iArg) (void)fMcBegin; \
    655     RT_CONCAT(iArgCheck_, a_iArg) = 1; NOREF(RT_CONCAT(iArgCheck_,a_iArg)); \
     650    int RT_CONCAT(iArgCheck_, a_iArg) = 1; NOREF(RT_CONCAT(iArgCheck_,a_iArg)); \
    656651    int RT_CONCAT3(iArgCheck_,a_iArg,a_Name); \
    657     AssertCompile((a_iArg) < cArgs); \
    658652    int RT_CONCAT(iVarCheck_,a_Name) = 0; \
    659653    a_Type const a_Name = &(a_Local); \
    660654    NOREF(a_Name)
    661655#define IEM_MC_ARG_LOCAL_EFLAGS(a_pName, a_Name, a_iArg) (void)fMcBegin; \
    662     RT_CONCAT(iArgCheck_, a_iArg) = 1; NOREF(RT_CONCAT(iArgCheck_,a_iArg)); \
     656    int RT_CONCAT(iArgCheck_, a_iArg) = 1; NOREF(RT_CONCAT(iArgCheck_,a_iArg)); \
    663657    int RT_CONCAT3(iArgCheck_,a_iArg,a_pName); \
    664     AssertCompile((a_iArg) < cArgs); \
    665658    int RT_CONCAT(iVarCheck_,a_Name) = 0; \
    666659    int RT_CONCAT(iVarCheck_,a_pName) = 0; \
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