VirtualBox

Changeset 98029 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Jan 9, 2023 10:58:23 AM (2 years ago)
Author:
vboxsync
Message:

VMM/DBGF: Adjust DR6 for instruction breakpoints on AMD, only enabled BPs are flagged. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/DBGFAll.cpp

    r97820 r98029  
    254254            CPUM_IMPORT_EXTRN_RET(pVCpu, CPUMCTX_EXTRN_DR6);
    255255            pVCpu->cpum.GstCtx.dr[6] &= ~X86_DR6_B_MASK;
    256             pVCpu->cpum.GstCtx.dr[6] |= fMatched;    /* All matched  */
     256            if (pVM->cpum.ro.GuestFeatures.enmCpuVendor != CPUMCPUVENDOR_INTEL)
     257                pVCpu->cpum.GstCtx.dr[6] |= fMatched & fEnabled;
     258            else
     259                pVCpu->cpum.GstCtx.dr[6] |= fMatched;    /* Intel: All matched, regardless of whether they're enabled or not  */
    257260            pVCpu->cpum.GstCtx.dr[7] &= ~X86_DR7_GD;
    258261            LogFlow(("DBGFBpCheckInstruction: hit hw breakpoints %#x at %04x:%RGv (%RGv)\n",
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