Changeset 104018 in vbox for trunk/src/VBox/VMM/testcase
- Timestamp:
- Mar 24, 2024 12:14:18 AM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 162406
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstIEMCheckMc.cpp
r104017 r104018 566 566 567 567 #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) \ 569 569 { \ 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)) 574 571 575 572 #define IEM_MC_END() \ … … 636 633 637 634 #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)); \ 639 636 int RT_CONCAT3(iArgCheck_,a_iArg,a_Name); \ 640 AssertCompile((a_iArg) < cArgs); \641 637 int RT_CONCAT(iVarCheck_,a_Name) = 0; \ 642 638 a_Type a_Name; \ 643 639 NOREF(a_Name) 644 640 #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)); \ 646 642 int RT_CONCAT3(iArgCheck_,a_iArg,a_Name); \ 647 AssertCompile((a_iArg) < cArgs); \648 643 int RT_CONCAT(iVarCheck_,a_Name) = 0; \ 649 644 a_Type const a_Name = (a_Value); \ … … 653 648 654 649 #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)); \ 656 651 int RT_CONCAT3(iArgCheck_,a_iArg,a_Name); \ 657 AssertCompile((a_iArg) < cArgs); \658 652 int RT_CONCAT(iVarCheck_,a_Name) = 0; \ 659 653 a_Type const a_Name = &(a_Local); \ 660 654 NOREF(a_Name) 661 655 #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)); \ 663 657 int RT_CONCAT3(iArgCheck_,a_iArg,a_pName); \ 664 AssertCompile((a_iArg) < cArgs); \665 658 int RT_CONCAT(iVarCheck_,a_Name) = 0; \ 666 659 int RT_CONCAT(iVarCheck_,a_pName) = 0; \
Note:
See TracChangeset
for help on using the changeset viewer.