Changeset 104652 in vbox for trunk/src/VBox/ValidationKit/bootsectors
- Timestamp:
- May 16, 2024 9:19:53 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-instr-4.c32
r104649 r104652 238 238 239 239 240 /** 241 * Returns the name of an X86 exception given the vector. 242 * 243 * @returns Name of the exception. 244 * @param uVector The exception vector. 245 */ 240 246 static const char BS3_FAR *bs3CpuInstr4XcptName(uint8_t uVector) 241 247 { … … 270 276 271 277 278 /** 279 * Gets the names of floating-point exception flags that are set for a given MXCSR. 280 * 281 * @returns Names of floating-point exception flags that are set. 282 * @param pszBuf Where to store the floating-point exception flags. 283 * @param cchBuf The size of the buffer. 284 * @param fMxCsr The MXCSR value. 285 */ 272 286 static size_t bs3CpuInstr4GetXcptFlags(char BS3_FAR *pszBuf, size_t cchBuf, uint32_t fMxCsr) 273 287 { 274 288 if (!(fMxCsr & X86_MXCSR_XCPT_FLAGS)) 275 289 return Bs3StrPrintf(pszBuf, cchBuf, " None"); 276 return Bs3StrPrintf(pszBuf, cchBuf, "%s%s%s%s%s%s", fMxCsr & X86_MXCSR_IE ? " IE" : "", 277 fMxCsr & X86_MXCSR_DE ? " DE" : "", 278 fMxCsr & X86_MXCSR_ZE ? " ZE" : "", 279 fMxCsr & X86_MXCSR_OE ? " OE" : "", 280 fMxCsr & X86_MXCSR_UE ? " UE" : "", 281 fMxCsr & X86_MXCSR_PE ? " PE" : ""); 290 return Bs3StrPrintf(pszBuf, cchBuf, "%s%s%s%s%s%s", fMxCsr & X86_MXCSR_IE ? " IE" : "", fMxCsr & X86_MXCSR_DE ? " DE" : "", 291 fMxCsr & X86_MXCSR_ZE ? " ZE" : "", fMxCsr & X86_MXCSR_OE ? " OE" : "", 292 fMxCsr & X86_MXCSR_UE ? " UE" : "", fMxCsr & X86_MXCSR_PE ? " PE" : ""); 282 293 } 283 294 … … 426 437 427 438 439 /** 440 * Frees the extended CPU contexts allocated by bs3CpuInstrXAllocExtCtxs. 441 * 442 * @param pExtCtx1 The first extended context. 443 * @param pExtCtx2 The second extended context. 444 */ 428 445 static void bs3CpuInstrXFreeExtCtxs(PBS3EXTCTX pExtCtx1, PBS3EXTCTX BS3_FAR pExtCtx2) 429 446 { … … 469 486 470 487 471 472 /** 473 * Configures the buffer with electrict fences in paged modes. 488 /** 489 * Configures the buffer with electric fences in paged modes. 474 490 * 475 491 * @returns Adjusted buffer pointer. … … 571 587 572 588 /* 573 * Code to make testing the tests faster. 589 * Code to make testing the tests faster. `bs3CpuInstrX_SkipIt()' randomly 574 590 * skips a large fraction of the micro-tests. It is sufficiently random 575 591 * that over a large number of runs, all micro-tests will be hit. … … 726 742 727 743 744 /** 745 * Worker for bs3CpuInstrX_WorkerTestType1. 746 */ 728 747 static uint16_t bs3CpuInstr4_WorkerTestType1_Inner(uint8_t bMode, PBS3CPUINSTR4_TEST1_CTX_T pTestCtx, 729 748 PCBS3CPUINSTRX_CONFIG_SAVED_T pSavedCfg) … … 934 953 Bs3RegCtxSaveForMode(&Ctx, bMode, 1024); 935 954 bs3CpuInstr4SetupSseAndAvx(&Ctx, pExtCtx); 936 //Bs3TestPrintf("FTW=%#x mm1/st1=%.16Rhxs\n", pExtCtx->Ctx.x87.FTW, &pExtCtx->Ctx.x87.aRegs[1]);937 955 938 956 /*
Note:
See TracChangeset
for help on using the changeset viewer.