VirtualBox

Changeset 103155 in vbox


Ignore:
Timestamp:
Feb 1, 2024 12:18:11 AM (8 months ago)
Author:
vboxsync
Message:

VMM/IEM: Remove unused IEM_MC_REF_LOCAL macro. bugref:10371

Location:
trunk/src/VBox/VMM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllInstPython.py

    r102978 r103155  
    27152715                offRef = oStmt.sName.find("_REF_");
    27162716                if offRef > 0:
    2717                     if oStmt.sName not in ('IEM_MC_REF_LOCAL', ):
    2718                         if oStmt.sName in ('IEM_MC_IF_FPUREG_NOT_EMPTY_REF_R80',
    2719                                            'IEM_MC_IF_TWO_FPUREGS_NOT_EMPTY_REF_R80',
    2720                                            'IEM_MC_IF_TWO_FPUREGS_NOT_EMPTY_REF_R80_FIRST',):
    2721                             sClass = 'FPUREG';
     2717                    if oStmt.sName in ('IEM_MC_IF_FPUREG_NOT_EMPTY_REF_R80',
     2718                                       'IEM_MC_IF_TWO_FPUREGS_NOT_EMPTY_REF_R80',
     2719                                       'IEM_MC_IF_TWO_FPUREGS_NOT_EMPTY_REF_R80_FIRST',):
     2720                        sClass = 'FPUREG';
     2721                    else:
     2722                        offUnderscore = oStmt.sName.find('_', offRef + 5);
     2723                        if offUnderscore > 0:
     2724                            assert offUnderscore > offRef;
     2725                            sClass = oStmt.sName[offRef + 5 : offUnderscore];
    27222726                        else:
    2723                             offUnderscore = oStmt.sName.find('_', offRef + 5);
    2724                             if offUnderscore > 0:
    2725                                 assert offUnderscore > offRef;
    2726                                 sClass = oStmt.sName[offRef + 5 : offUnderscore];
    2727                             else:
    2728                                 sClass = oStmt.sName[offRef + 5];
    2729                         asRegRefClasses[sClass] = True;
     2727                            sClass = oStmt.sName[offRef + 5];
     2728                    asRegRefClasses[sClass] = True;
    27302729                else:
    27312730                    offFetch = oStmt.sName.find("_FETCH_");
     
    31073106    'IEM_MC_REF_GREG_U8':                                        (McBlock.parseMcGeneric,           False, False, False, ), # threaded
    31083107    'IEM_MC_REF_GREG_U8_CONST':                                  (McBlock.parseMcGeneric,           False, False, False, ), # threaded
    3109     'IEM_MC_REF_LOCAL':                                          (McBlock.parseMcGeneric,           False, False, False, ), # eliminate!
    31103108    'IEM_MC_REF_MREG_U32_CONST':                                 (McBlock.parseMcGeneric,           False, False, False, ),
    31113109    'IEM_MC_REF_MREG_U64':                                       (McBlock.parseMcGeneric,           False, False, False, ),
  • trunk/src/VBox/VMM/VMMAll/IEMAllN8vePython.py

    r102977 r103155  
    286286                asVarsInScope.append(oStmt.sVarName);
    287287
    288             elif oStmt.sName == 'IEM_MC_REF_LOCAL':
    289                 dVars[oStmt.asParams[0]].makeReference(dVars[oStmt.asParams[1]], self);
    290 
    291288        #
    292289        # Now work the statements backwards and look for the last reference to
  • trunk/src/VBox/VMM/include/IEMMc.h

    r102977 r103155  
    199199#define IEM_MC_LOCAL_ASSIGN(a_Type, a_Name, a_Value)    a_Type a_Name = (a_Value)
    200200#define IEM_MC_LOCAL_CONST(a_Type, a_Name, a_Value)     a_Type const a_Name = (a_Value)
    201 /** @deprecated Use IEM_MC_ARG_LOCAL_REF instead! */
    202 #define IEM_MC_REF_LOCAL(a_pRefArg, a_Local)            (a_pRefArg) = &(a_Local)
    203201#define IEM_MC_ARG(a_Type, a_Name, a_iArg)              a_Type a_Name
    204202#define IEM_MC_ARG_CONST(a_Type, a_Name, a_Value, a_iArg)       a_Type const a_Name = (a_Value)
  • trunk/src/VBox/VMM/testcase/tstIEMCheckMc.cpp

    r102977 r103155  
    610610    a_Type a_Name = (a_Value); \
    611611    NOREF(a_Name)
    612 #define IEM_MC_REF_LOCAL(a_pRefArg, a_Local) (void)fMcBegin; \
    613     (a_pRefArg) = &(a_Local)
    614612
    615613#define IEM_MC_ARG(a_Type, a_Name, a_iArg) (void)fMcBegin; \
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