VirtualBox

Ignore:
Timestamp:
May 16, 2024 9:19:53 AM (7 months ago)
Author:
vboxsync
Message:

ValidationKit/bootsectors: bugref:10658 SIMD FP testcase: doxygen and nits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-instr-4.c32

    r104649 r104652  
    238238
    239239
     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 */
    240246static const char BS3_FAR *bs3CpuInstr4XcptName(uint8_t uVector)
    241247{
     
    270276
    271277
     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 */
    272286static size_t bs3CpuInstr4GetXcptFlags(char BS3_FAR *pszBuf, size_t cchBuf, uint32_t fMxCsr)
    273287{
    274288    if (!(fMxCsr & X86_MXCSR_XCPT_FLAGS))
    275289        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" : "");
    282293}
    283294
     
    426437
    427438
     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 */
    428445static void bs3CpuInstrXFreeExtCtxs(PBS3EXTCTX pExtCtx1, PBS3EXTCTX BS3_FAR pExtCtx2)
    429446{
     
    469486
    470487
    471 
    472 /**
    473  * Configures the buffer with electrict fences in paged modes.
     488/**
     489 * Configures the buffer with electric fences in paged modes.
    474490 *
    475491 * @returns Adjusted buffer pointer.
     
    571587
    572588/*
    573  * Code to make testing the tests faster.  `bs3CpuInstrX_SkipIt()' randomly
     589 * Code to make testing the tests faster. `bs3CpuInstrX_SkipIt()' randomly
    574590 * skips a large fraction of the micro-tests.  It is sufficiently random
    575591 * that over a large number of runs, all micro-tests will be hit.
     
    726742
    727743
     744/**
     745 * Worker for bs3CpuInstrX_WorkerTestType1.
     746 */
    728747static uint16_t bs3CpuInstr4_WorkerTestType1_Inner(uint8_t bMode, PBS3CPUINSTR4_TEST1_CTX_T pTestCtx,
    729748                                                   PCBS3CPUINSTRX_CONFIG_SAVED_T pSavedCfg)
     
    934953    Bs3RegCtxSaveForMode(&Ctx, bMode, 1024);
    935954    bs3CpuInstr4SetupSseAndAvx(&Ctx, pExtCtx);
    936     //Bs3TestPrintf("FTW=%#x mm1/st1=%.16Rhxs\n",  pExtCtx->Ctx.x87.FTW, &pExtCtx->Ctx.x87.aRegs[1]);
    937955
    938956    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette