Changeset 49281 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Oct 24, 2013 7:36:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTInlineAsm.cpp
r49194 r49281 580 580 } 581 581 } 582 583 # if 0 584 static void bruteForceCpuId(void) 585 { 586 RTTestISub("brute force CPUID leafs"); 587 uint32_t auPrevValues[4] = { 0, 0, 0, 0}; 588 uint32_t uLeaf = 0; 589 do 590 { 591 uint32_t auValues[4]; 592 ASMCpuIdExSlow(uLeaf, 0, 0, 0, &auValues[0], &auValues[1], &auValues[2], &auValues[3]); 593 if ( (auValues[0] != auPrevValues[0] && auValues[0] != uLeaf) 594 || (auValues[1] != auPrevValues[1] && auValues[1] != 0) 595 || (auValues[2] != auPrevValues[2] && auValues[2] != 0) 596 || (auValues[3] != auPrevValues[3] && auValues[3] != 0) 597 || (uLeaf & (UINT32_C(0x08000000) - UINT32_C(1))) == 0) 598 { 599 RTTestIPrintf(RTTESTLVL_ALWAYS, 600 "%08x: %08x %08x %08x %08x\n", uLeaf, 601 auValues[0], auValues[1], auValues[2], auValues[3]); 602 } 603 auPrevValues[0] = auValues[0]; 604 auPrevValues[1] = auValues[1]; 605 auPrevValues[2] = auValues[2]; 606 auPrevValues[3] = auValues[3]; 607 608 //uint32_t uSubLeaf = 0; 609 //do 610 //{ 611 // 612 // 613 //} while (false); 614 } while (uLeaf++ < UINT32_MAX); 615 } 616 # endif 582 617 583 618 #endif /* AMD64 || X86 */ … … 1561 1596 #if !defined(GCC44_32BIT_PIC) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) 1562 1597 tstASMCpuId(); 1598 //bruteForceCpuId(); 1563 1599 #endif 1564 1600 #if 1
Note:
See TracChangeset
for help on using the changeset viewer.