Changeset 47828 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Aug 18, 2013 12:14:12 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r47714 r47828 2364 2364 #ifdef IN_RC 2365 2365 /* Make sure to save host registers first. */ 2366 if (!(pVCpu->cpum.s.fUseFlags & (CPUM_USE_DEBUG_REGS_HOST | CPUM_USE_DEBUG_REGS_HYPER)))2367 {2368 Assert(!(pVCpu->cpum.s.fUseFlags & CPUM_USED_DEBUG_REGS_HOST));2369 pVCpu->cpum.s.Host.dr6 = ASMGetDR6();2370 pVCpu->cpum.s.Host.dr7 = ASMGetDR7();2371 pVCpu->cpum.s.fUseFlags |= CPUM_USE_DEBUG_REGS_HYPER;2372 ASMSetDR6(X86_DR6_INIT_VAL);2373 }2374 2366 if (!(pVCpu->cpum.s.fUseFlags & CPUM_USED_DEBUG_REGS_HOST)) 2375 2367 { 2368 if (!(pVCpu->cpum.s.fUseFlags & CPUM_USE_DEBUG_REGS_HOST)) 2369 { 2370 pVCpu->cpum.s.Host.dr6 = ASMGetDR6(); 2371 pVCpu->cpum.s.Host.dr7 = ASMGetDR7(); 2372 } 2376 2373 pVCpu->cpum.s.Host.dr0 = ASMGetDR0(); 2377 2374 pVCpu->cpum.s.Host.dr1 = ASMGetDR1(); … … 2389 2386 pVCpu->cpum.s.Hyper.dr[3] = uNewDr3; 2390 2387 ASMSetDR3(uNewDr3); 2388 ASMSetDR6(X86_DR6_INIT_VAL); 2391 2389 pVCpu->cpum.s.Hyper.dr[7] = uNewDr7; 2392 2390 ASMSetDR7(uNewDr7);
Note:
See TracChangeset
for help on using the changeset viewer.