VirtualBox

Changeset 97692 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Nov 28, 2022 10:01:37 PM (2 years ago)
Author:
vboxsync
Message:

ValKit/bs3-cpu-basic-2: Tweaked one of the hardware breakpoint tests a little to check exactly how/what gets a match when not eanbled. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2-x0.c

    r97689 r97692  
    54985498                    g_usBs3TestStep++; /* 6 */
    54995499
    5500                     /* Again with a single globally enabled breakpoint. */
    5501                     //Bs3TestPrintf("bp 2/g...\n");
    5502                     Bs3RegSetDr0(0);
    5503                     //Bs3RegSetDr1(0);
     5500                    /* Again with a single globally enabled breakpoint and serveral other types of breakpoints configured but not enabled. */
     5501                    //Bs3TestPrintf("bp 2/g+...\n");
     5502                    Bs3RegSetDr0(uFlatDst);
     5503                    Bs3RegSetDr1(uFlatDst);
    55045504                    Bs3RegSetDr2(uFlatDst);
    5505                     //Bs3RegSetDr3(0);
     5505                    Bs3RegSetDr3(uFlatDst);
    55065506                    Bs3RegSetDr6(X86_DR6_INIT_VAL | X86_DR6_BS | X86_DR6_BD | X86_DR6_BT | X86_DR6_B2);
    55075507                    Bs3RegSetDr7(X86_DR7_INIT_VAL
    5508                                  | X86_DR7_RW(2, X86_DR7_RW_EO) | X86_DR7_LEN(2, X86_DR7_LEN_BYTE) | X86_DR7_G(2));
     5508                                 | X86_DR7_RW(0, X86_DR7_RW_RW) | X86_DR7_LEN(0, X86_DR7_LEN_BYTE)
     5509                                 | X86_DR7_RW(1, X86_DR7_RW_RW) | X86_DR7_LEN(1, X86_DR7_LEN_BYTE) | X86_DR7_L_G(1)
     5510                                 | X86_DR7_RW(2, X86_DR7_RW_EO) | X86_DR7_LEN(2, X86_DR7_LEN_BYTE) | X86_DR7_G(2)
     5511                                 | X86_DR7_RW(3, X86_DR7_RW_WO) | X86_DR7_LEN(3, X86_DR7_LEN_BYTE) | X86_DR7_G(3)
     5512                                 );
    55095513                    bs3CpuBasic2_retf_PrepStack(StkPtr, cbStkItem, s_aSubTests[iSubTest].uDstCs, s_aSubTests[iSubTest].offDst,
    55105514                                                s_aSubTests[iSubTest].fInterPriv, s_aTests[iTest].cbImm,
     
    55175521                        bs3CpuBasic2_CompareGpCtx(&TrapCtx, &CtxExpected, s_aSubTests[iSubTest].uErrCd);
    55185522                    g_usBs3TestStep++; /* 7 */
    5519 
    55205523
    55215524                    /* Now do single stepping: */
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