Changeset 12091 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Sep 4, 2008 12:58:23 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r12090 r12091 686 686 if (pVM->hwaccm.s.fContextUseFlags & HWACCM_CHANGED_GUEST_DEBUG) 687 687 { 688 /** @todo DR0-6 */689 688 val = pCtx->dr7; 690 689 val &= ~(RT_BIT(11) | RT_BIT(12) | RT_BIT(14) | RT_BIT(15)); /* must be zero */ 691 690 val |= 0x400; /* must be one */ 692 #if def VBOX_STRICT691 #ifndef VBOX_WITH_DEBUG_REGISTER_SUPPORT 693 692 val = 0x400; 694 693 #endif … … 1202 1201 1203 1202 /* Sync back the debug registers. */ 1204 /** @todo Implement debug registers correctly. */1205 1203 pCtx->dr6 = pVMCB->guest.u64DR6; 1206 1204 pCtx->dr7 = pVMCB->guest.u64DR7; -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r12090 r12091 969 969 val &= ~(RT_BIT(11) | RT_BIT(12) | RT_BIT(14) | RT_BIT(15)); /* must be zero */ 970 970 val |= 0x400; /* must be one */ 971 #ifdef VBOX_WITH_DEBUG_REGISTER_SUPPORT 971 972 rc |= VMXWriteVMCS(VMX_VMCS_GUEST_DR7, val); 973 #else 974 rc |= VMXWriteVMCS(VMX_VMCS_GUEST_DR7, 0x400); 975 #endif 972 976 AssertRC(rc); 973 977
Note:
See TracChangeset
for help on using the changeset viewer.