VirtualBox

Changeset 9846 in vbox


Ignore:
Timestamp:
Jun 20, 2008 10:04:29 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32228
Message:

Disassembly update for flat addresses & 64 bits mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGFDisas.cpp

    r9704 r9846  
    355355        SelInfo.Raw.Gen.u16LimitLow = ~0;
    356356        SelInfo.Raw.Gen.u4LimitHigh = ~0;
    357         SelInfo.Raw.Gen.u1Present   = 1;
    358         SelInfo.Raw.Gen.u1Granularity = 1;
    359         SelInfo.Raw.Gen.u1DefBig    = 1;
    360         SelInfo.Raw.Gen.u1DescType  = 1;
    361         SelInfo.Raw.Gen.u4Type      = X86_SEL_TYPE_EO;
     357
     358        if (CPUMAreHiddenSelRegsValid(pVM))
     359        {   /* Assume the current CS defines the execution mode. */
     360            pCtxCore   = CPUMGetGuestCtxCore(pVM);
     361            pHiddenSel = (CPUMSELREGHID *)&pCtxCore->csHid;
     362
     363            SelInfo.Raw.Gen.u1Present       = pHiddenSel->Attr.n.u1Present;
     364            SelInfo.Raw.Gen.u1Granularity   = pHiddenSel->Attr.n.u1Granularity;;
     365            SelInfo.Raw.Gen.u1DefBig        = pHiddenSel->Attr.n.u1DefBig;
     366            SelInfo.Raw.Gen.u1Long          = pHiddenSel->Attr.n.u1Long;
     367            SelInfo.Raw.Gen.u1DescType      = pHiddenSel->Attr.n.u1DescType;
     368            SelInfo.Raw.Gen.u4Type          = pHiddenSel->Attr.n.u4Type;
     369        }
     370        else
     371        {
     372            SelInfo.Raw.Gen.u1Present   = 1;
     373            SelInfo.Raw.Gen.u1Granularity = 1;
     374            SelInfo.Raw.Gen.u1DefBig    = 1;
     375            SelInfo.Raw.Gen.u1DescType  = 1;
     376            SelInfo.Raw.Gen.u4Type      = X86_SEL_TYPE_EO;
     377        }
    362378    }
    363379    else if (   !(fFlags & DBGF_DISAS_FLAGS_CURRENT_HYPER)
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