Changeset 47619 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Aug 8, 2013 7:06:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/HMAll.cpp
r46420 r47619 33 33 #include <iprt/asm.h> 34 34 #include <iprt/string.h> 35 #include <iprt/thread.h> 35 36 #include <iprt/x86.h> 36 37 #include <iprt/asm-amd64-x86.h> … … 426 427 } 427 428 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 */ 442 VMM_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.