Changeset 41728 in vbox for trunk/src/VBox/VMM/VMMAll/EMAll.cpp
- Timestamp:
- Jun 14, 2012 11:04:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r41727 r41728 2209 2209 switch (DestRegCrx) 2210 2210 { 2211 case USE_REG_CR0:2211 case DISCREG_CR0: 2212 2212 oldval = CPUMGetGuestCR0(pVCpu); 2213 2213 #ifdef IN_RC … … 2262 2262 return rc2 == VINF_SUCCESS ? rc : rc2; 2263 2263 2264 case USE_REG_CR2:2264 case DISCREG_CR2: 2265 2265 rc = CPUMSetGuestCR2(pVCpu, val); AssertRC(rc); 2266 2266 return VINF_SUCCESS; 2267 2267 2268 case USE_REG_CR3:2268 case DISCREG_CR3: 2269 2269 /* Reloading the current CR3 means the guest just wants to flush the TLBs */ 2270 2270 rc = CPUMSetGuestCR3(pVCpu, val); AssertRC(rc); … … 2277 2277 return rc; 2278 2278 2279 case USE_REG_CR4:2279 case DISCREG_CR4: 2280 2280 oldval = CPUMGetGuestCR4(pVCpu); 2281 2281 rc = CPUMSetGuestCR4(pVCpu, val); AssertRC(rc); … … 2315 2315 return rc2 == VINF_SUCCESS ? rc : rc2; 2316 2316 2317 case USE_REG_CR8:2317 case DISCREG_CR8: 2318 2318 return PDMApicSetTPR(pVCpu, val << 4); /* cr8 bits 3-0 correspond to bits 7-4 of the task priority mmio register. */ 2319 2319 2320 2320 default: 2321 2321 AssertFailed(); 2322 case USE_REG_CR1: /* illegal op */2322 case DISCREG_CR1: /* illegal op */ 2323 2323 break; 2324 2324 } … … 2377 2377 | (u16Data & (X86_CR0_PE | X86_CR0_MP | X86_CR0_EM | X86_CR0_TS)); 2378 2378 2379 return emUpdateCRx(pVM, pVCpu, pRegFrame, USE_REG_CR0, NewCr0);2379 return emUpdateCRx(pVM, pVCpu, pRegFrame, DISCREG_CR0, NewCr0); 2380 2380 } 2381 2381
Note:
See TracChangeset
for help on using the changeset viewer.