VirtualBox

Changeset 47619 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Aug 8, 2013 7:06:45 PM (11 years ago)
Author:
vboxsync
Message:

EM: Started on HM single stepping for IEM verification purposes. Trying to fix the HM debugging in the proccess. VT-x only atm.

File:
1 edited

Legend:

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

    r46420 r47619  
    3333#include <iprt/asm.h>
    3434#include <iprt/string.h>
     35#include <iprt/thread.h>
    3536#include <iprt/x86.h>
    3637#include <iprt/asm-amd64-x86.h>
     
    426427}
    427428
     429
     430/**
     431 * Sets or clears the single instruction flag.
     432 *
     433 * When set, HM will try its best to return to ring-3 after executing a single
     434 * instruction.  This can be used for debugging.  See also
     435 * EMR3HmSingleInstruction.
     436 *
     437 * @returns The old flag state.
     438 * @param   pVCpu               Pointer to the cross context CPU structure of
     439 *                              the calling EMT.
     440 * @param   fEnable             The new flag state.
     441 */
     442VMM_INT_DECL(bool) HMSetSingleInstruction(PVMCPU pVCpu, bool fEnable)
     443{
     444    VMCPU_ASSERT_EMT(pVCpu);
     445    bool fOld = pVCpu->hm.s.fSingleInstruction;
     446    pVCpu->hm.s.fSingleInstruction = fEnable;
     447    return fOld;
     448}
     449
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