Changeset 81605 in vbox for trunk/src/VBox/ValidationKit/bootsectors
- Timestamp:
- Oct 31, 2019 2:29:46 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134362
- Location:
- trunk/src/VBox/ValidationKit/bootsectors
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-decoding-1.c32
r76553 r81605 882 882 bool fIsAmd = false; 883 883 if (g_uBs3CpuDetected & BS3CPU_F_CPUID) 884 fIsAmd = ASMIsAmdCpu() ;884 fIsAmd = ASMIsAmdCpu() || ASMIsHygonCpu(); 885 885 Bs3TestPrintf("fIsAmd=%d\n", fIsAmd); 886 886 -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1-template.c
r76886 r81605 4748 4748 CASE_PRED(BS3CG1PRED_VENDOR_VIA, pThis->bCpuVendor == BS3CPUVENDOR_VIA); 4749 4749 CASE_PRED(BS3CG1PRED_VENDOR_SHANGHAI, pThis->bCpuVendor == BS3CPUVENDOR_SHANGHAI); 4750 CASE_PRED(BS3CG1PRED_VENDOR_HYGON, pThis->bCpuVendor == BS3CPUVENDOR_HYGON); 4750 4751 4751 4752 #undef CASE_PRED -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1.h
r76886 r81605 776 776 BS3CG1PRED_VENDOR_VIA, 777 777 BS3CG1PRED_VENDOR_SHANGHAI, 778 BS3CG1PRED_VENDOR_HYGON, 778 779 779 780 BS3CG1PRED_END -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-weird-1-x0.c
r76553 r81605 324 324 Bs3TrapSetJmpAndRestore(&Ctx, &TrapCtx); 325 325 Bs3RegSetDr7(0); 326 if (g_enmCpuVendor == BS3CPUVENDOR_AMD )326 if (g_enmCpuVendor == BS3CPUVENDOR_AMD || g_enmCpuVendor == BS3CPUVENDOR_HYGON) 327 327 bs3CpuWeird1_CompareDbgInhibitRingXfer(&TrapCtx, &Ctx, X86_XCPT_DB, offTestLabel, cbSpAdjust, 328 328 X86_DR6_INIT_VAL | X86_DR6_B0, cbIretFrameInt, uHandlerRspInt); … … 341 341 342 342 Bs3TrapSetJmpAndRestore(&Ctx, &TrapCtx); 343 if (g_enmCpuVendor == BS3CPUVENDOR_AMD )343 if (g_enmCpuVendor == BS3CPUVENDOR_AMD || g_enmCpuVendor == BS3CPUVENDOR_HYGON) 344 344 bs3CpuWeird1_CompareDbgInhibitRingXfer(&TrapCtx, &Ctx, X86_XCPT_DB, offTestLabel, cbSpAdjust, 345 345 X86_DR6_INIT_VAL | X86_DR6_B0, cbIretFrameInt, uHandlerRspInt); -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-GetCpuVendor.c
r76886 r81605 45 45 if (ASMIsShanghaiCpuEx(uEbx, uEcx, uEdx)) 46 46 return BS3CPUVENDOR_SHANGHAI; 47 if (ASMIsHygonCpuEx(uEbx, uEcx, uEdx)) 48 return BS3CPUVENDOR_HYGON; 47 49 return BS3CPUVENDOR_UNKNOWN; 48 50 } -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r76886 r81605 1538 1538 BS3CPUVENDOR_CYRIX, 1539 1539 BS3CPUVENDOR_SHANGHAI, 1540 BS3CPUVENDOR_HYGON, 1540 1541 BS3CPUVENDOR_UNKNOWN, 1541 1542 BS3CPUVENDOR_END
Note:
See TracChangeset
for help on using the changeset viewer.