VirtualBox

Changeset 9038 in vbox for trunk


Ignore:
Timestamp:
May 21, 2008 8:54:25 PM (17 years ago)
Author:
vboxsync
Message:

Sync back the debug registers too (fixed gdb/dbx weirdness on solaris).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r9033 r9038  
    257257    if (!pVM->hwaccm.s.fNestedPaging)
    258258        pVMCB->ctrl.u16InterceptRdCRx = RT_BIT(0) | RT_BIT(3) | RT_BIT(4);
    259     else   
     259    else
    260260        pVMCB->ctrl.u16InterceptRdCRx = RT_BIT(0);
    261261
     
    10371037
    10381038    /* Note: no reason to sync back the CRx and DRx registers. They can't be changed by the guest. */
    1039     /* Note: only in the nested paging case can CR3 & CR4 be changed by the guest. */ 
     1039    /* Note: only in the nested paging case can CR3 & CR4 be changed by the guest. */
    10401040    if (pVM->hwaccm.s.fNestedPaging)
    10411041    {
     
    10561056
    10571057    Log2(("exitCode = %x\n", exitCode));
     1058
     1059    /* Sync back the debug registers. */
     1060    /** @todo Implement debug registers correctly. */
     1061    pCtx->dr6 = pVMCB->guest.u64DR6;
     1062    pCtx->dr7 = pVMCB->guest.u64DR7;
    10581063
    10591064    /* Check if an injected event was interrupted prematurely. */
     
    14321437
    14331438            STAM_COUNTER_INC(&pVM->hwaccm.s.StatFlushTLBCRxChange);
    1434            
     1439
    14351440            /** @note Force a TLB flush. SVM requires us to do it manually. */
    14361441            pVM->hwaccm.s.svm.fForceTLBFlush = true;
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