Changeset 5287 in vbox
- Timestamp:
- Oct 14, 2007 5:30:14 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vm.h
r5285 r5287 357 357 #endif 358 358 #ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL 359 char padding[36 06]; /* multiple of 32 */359 char padding[3638]; /* multiple of 32 */ 360 360 #else 361 char padding[HC_ARCH_BITS == 32 ? 34 56 : 3584]; /* multiple of 32 */361 char padding[HC_ARCH_BITS == 32 ? 3488 : 3616]; /* multiple of 32 */ 362 362 #endif 363 363 } cpum; -
trunk/include/VBox/vm.mac
r5285 r5287 79 79 alignb 32 80 80 %ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL 81 .cpum resb 31 0681 .cpum resb 3138 82 82 %elif HC_ARCH_BITS == 32 83 .cpum resb 34 5683 .cpum resb 3488 84 84 %else 85 .cpum resb 3 58485 .cpum resb 3616 86 86 %endif 87 87 .vmm resb 1024 -
trunk/src/VBox/VMM/CPUM.cpp
r5285 r5287 46 46 *******************************************************************************/ 47 47 /** The saved state version. */ 48 #define CPUM_SAVED_STATE_VERSION 448 #define CPUM_SAVED_STATE_VERSION 5 49 49 50 50 … … 323 323 * The important part here (we think) is to make sure the 0xc0000000 324 324 * function returns 0xc0000001. As for the features, we don't currently 325 * let on about any of those... 325 * let on about any of those... 0xc0000002 seems to be some 326 * temperature/hz/++ stuff, include it as well (static). 326 327 */ 327 328 if ( pCPUM->aGuestCpuIdCentaur[0].eax >= UINT32_C(0xc0000000) 328 329 && pCPUM->aGuestCpuIdCentaur[0].eax <= UINT32_C(0xc0000004)) 329 330 { 330 pCPUM->aGuestCpuIdCentaur[0].eax = UINT32_C(0xc0000001);331 pCPUM->aGuestCpuIdCentaur[0].eax = RT_MIN(pCPUM->aGuestCpuIdCentaur[0].eax, UINT32_C(0xc0000002)); 331 332 pCPUM->aGuestCpuIdCentaur[1].edx = 0; /* all features hidden */ 332 for (i = 2; i < RT_ELEMENTS(pCPUM->aGuestCpuIdCentaur); i++) 333 for (i = pCPUM->aGuestCpuIdCentaur[0].eax - UINT32_C(0xc0000000); 334 i < RT_ELEMENTS(pCPUM->aGuestCpuIdCentaur); 335 i++) 333 336 pCPUM->aGuestCpuIdCentaur[i] = pCPUM->GuestCpuIdDef; 334 337 } -
trunk/src/VBox/VMM/CPUMInternal.h
r5285 r5287 333 333 CPUMCPUID aGuestCpuIdExt[10]; 334 334 /** The centaur set of CpuId leafs. */ 335 CPUMCPUID aGuestCpuIdCentaur[ 2];335 CPUMCPUID aGuestCpuIdCentaur[4]; 336 336 /** The default set of CpuId leafs. */ 337 337 CPUMCPUID GuestCpuIdDef; -
trunk/src/VBox/VMM/CPUMInternal.mac
r5285 r5287 382 382 .aGuestCpuIdStd resb 16*5 383 383 .aGuestCpuIdExt resb 16*10 384 .aGuestCpuIdCentaur resb 16* 2384 .aGuestCpuIdCentaur resb 16*4 385 385 .GuestCpuIdDef resb 16 386 386
Note:
See TracChangeset
for help on using the changeset viewer.