Changeset 19228 in vbox
- Timestamp:
- Apr 28, 2009 8:53:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/VMMAll.cpp
r19227 r19228 65 65 VM_ASSERT_EMT(pVM); 66 66 67 #if defined(IN_RC) 68 /* There is only one CPU if we're in GC. */69 return 0;67 /* Shortcut for one CPU */ 68 if (pVM->cCPUs == 1) 69 return 0; 70 70 71 # elif defined(IN_RING3)71 #if defined(IN_RING3) 72 72 return VMR3GetVMCPUId(pVM); 73 74 #else /* IN_RING0 */ 73 #elif defined(IN_RING0) 75 74 return HWACCMR0GetVMCPUId(pVM); 76 75 #endif /* IN_RING0 */ 76 77 AssertFailed(); 78 return 0; 77 79 } 78 80 … … 93 95 VM_ASSERT_EMT(pVM); 94 96 95 #if defined(IN_RC) 96 /* There is only one CPU if we're in GC. */97 return &pVM->aCpus[0];97 /* Shortcut for one CPU */ 98 if (pVM->cCPUs == 1) 99 return &pVM->aCpus[0]; 98 100 99 # elif defined(IN_RING3)101 #ifdef IN_RING3 100 102 return &pVM->aCpus[VMR3GetVMCPUId(pVM)]; 101 102 #else /* IN_RING0 */ 103 #elif defined(IN_RING0) 103 104 return HWACCMR0GetVMCPU(pVM); 104 105 #endif /* IN_RING0 */ 106 107 AssertFailed(); 108 return &pVM->aCpus[0]; 105 109 } 106 110
Note:
See TracChangeset
for help on using the changeset viewer.