VirtualBox

Changeset 36812 in vbox


Ignore:
Timestamp:
Apr 22, 2011 12:31:21 PM (14 years ago)
Author:
vboxsync
Message:

IEM: hlt

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r36798 r36812  
    4545*   Header Files                                                               *
    4646*******************************************************************************/
    47 //#define RT_STRICT
     47#define RT_STRICT
     48#define LOG_ENABLED
    4849#define LOG_GROUP   LOG_GROUP_EM /** @todo add log group */
    4950#include <VBox/vmm/iem.h>
     
    191192/** Temporary hack to disable the double execution.  Will be removed in favor
    192193 * of a dedicated execution mode in EM. */
    193 //#define IEM_VERIFICATION_MODE_NO_REM
     194#define IEM_VERIFICATION_MODE_NO_REM
    194195
    195196/** Used to shut up GCC warnings about variables that 'may be used uninitialized'
     
    54075408    EMSetInhibitInterruptsPC(IEMCPU_TO_VMCPU(pIemCpu), pCtx->rip);
    54085409    return VINF_SUCCESS;
     5410}
     5411
     5412
     5413/**
     5414 * Implements 'HLT'.
     5415 */
     5416IEM_CIMPL_DEF_0(iemCImpl_hlt)
     5417{
     5418    if (pIemCpu->uCpl != 0)
     5419        return iemRaiseGeneralProtectionFault0(pIemCpu);
     5420    iemRegAddToRip(pIemCpu, cbInstr);
     5421    return VINF_EM_HALT;
    54095422}
    54105423
     
    67566769    iemExecVerificationModeSetup(pIemCpu);
    67576770#endif
    6758 #ifdef DEBUG
     6771#ifdef LOG_ENABLED
    67596772    PCPUMCTX pCtx = pIemCpu->CTX_SUFF(pCtx);
    67606773    char     szInstr[256];
  • trunk/src/VBox/VMM/VMMAll/IEMAllInstructions.cpp.h

    r36795 r36812  
    73857385
    73867386/** Opcode 0xf4. */
    7387 FNIEMOP_STUB(iemOp_hlt);
     7387FNIEMOP_DEF(iemOp_hlt)
     7388{
     7389    IEMOP_HLP_NO_LOCK_PREFIX();
     7390    return IEM_MC_DEFER_TO_CIMPL_0(iemCImpl_hlt);
     7391}
     7392
     7393
    73887394/** Opcode 0xf5. */
    73897395FNIEMOP_STUB(iemOp_cmc);
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