VirtualBox

Ignore:
Timestamp:
Apr 26, 2024 10:30:39 AM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162948
Message:

ValidationKit/bootsectors: Implement testcases for maskmovq, [v]maskmovdqu instructions, bugref:9898

  • facility to prefix assembled instruction-test-functions with 'FS' instruction
  • facility to test instructions with implicit [ ER]DI memory pointers ('type 1' test worker only)
  • facility to allow a range of valid CR2 addresses ('type 1' test worker only)
  • bodge regarding FTW results on paging & alignment faults ('type 1' test worker only)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestCheckRegCtxEx.c

    r98103 r104440  
    9696    if (!(fbFlags & BS3REG_CTX_F_NO_CR2_CR3))
    9797    {
    98         CHECK_MEMBER("cr2", "%08RX64",  pActualCtx->cr2.u,    pExpectedCtx->cr2.u);
     98        /* cr2Range is always zero except if changed by the test worker */
     99        if ((pActualCtx->cr2.u < pExpectedCtx->cr2.u ||
     100             pActualCtx->cr2.u > pExpectedCtx->cr2.u + pExpectedCtx->cr2Range))
     101        {
     102            CHECK_MEMBER("cr2", "%08RX64",  pActualCtx->cr2.u,    pExpectedCtx->cr2.u);
     103        }
    99104        CHECK_MEMBER("cr3", "%08RX64",  pActualCtx->cr3.u,    pExpectedCtx->cr3.u);
    100105    }
Note: See TracChangeset for help on using the changeset viewer.

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