Changeset 47706 in vbox for trunk/src/VBox
- Timestamp:
- Aug 13, 2013 7:08:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r47661 r47706 2259 2259 { 2260 2260 Assert(!CPUMIsGuestDebugStateActive(pVCpu)); 2261 #ifdef IN_RC 2262 bool const fHmEnabled = false; 2263 #elif defined(IN_RING3) 2264 bool const fHmEnabled = HMIsEnabled(pVM); 2265 #endif 2261 2266 2262 2267 /* … … 2277 2282 { 2278 2283 uNewDr0 = CPUMGetGuestDR0(pVCpu); 2279 #if def IN_RC2280 if ( MMHyperIsInsideArea(pVM, uNewDr0))2284 #ifndef IN_RING0 2285 if (fHmEnabled && MMHyperIsInsideArea(pVM, uNewDr0)) 2281 2286 uNewDr0 = 0; 2282 2287 else … … 2297 2302 { 2298 2303 uNewDr1 = CPUMGetGuestDR1(pVCpu); 2299 #if def IN_RC2300 if ( MMHyperIsInsideArea(pVM, uNewDr1))2304 #ifndef IN_RING0 2305 if (fHmEnabled && MMHyperIsInsideArea(pVM, uNewDr1)) 2301 2306 uNewDr1 = 0; 2302 2307 else … … 2317 2322 { 2318 2323 uNewDr2 = CPUMGetGuestDR2(pVCpu); 2319 #if def IN_RC2320 if ( MMHyperIsInsideArea(pVM, uNewDr2))2324 #ifndef IN_RING0 2325 if (fHmEnabled && MMHyperIsInsideArea(pVM, uNewDr2)) 2321 2326 uNewDr2 = 0; 2322 2327 else … … 2337 2342 { 2338 2343 uNewDr3 = CPUMGetGuestDR3(pVCpu); 2339 #if def IN_RC2340 if ( MMHyperIsInsideArea(pVM, uNewDr3))2344 #ifndef IN_RING0 2345 if (fHmEnabled && MMHyperIsInsideArea(pVM, uNewDr3)) 2341 2346 uNewDr3 = 0; 2342 2347 else
Note:
See TracChangeset
for help on using the changeset viewer.