VirtualBox

Changeset 5874 in vbox


Ignore:
Timestamp:
Nov 28, 2007 7:22:17 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26363
Message:

rearranged checks to drastically improve the chance of flat addresses working when debugging RM code

File:
1 edited

Legend:

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

    r5667 r5874  
    297297        fRealModeAddress            = SelInfo.fRealMode;
    298298    }
     299    else if (Sel == DBGF_SEL_FLAT)
     300    {
     301        SelInfo.GCPtrBase           = 0;
     302        SelInfo.cbLimit             = ~0;
     303        SelInfo.fHyper              = false;
     304        SelInfo.fRealMode           = false;
     305        SelInfo.Raw.au32[0]         = 0;
     306        SelInfo.Raw.au32[1]         = 0;
     307        SelInfo.Raw.Gen.u16LimitLow = ~0;
     308        SelInfo.Raw.Gen.u4LimitHigh = ~0;
     309        SelInfo.Raw.Gen.u1Present   = 1;
     310        SelInfo.Raw.Gen.u1Granularity = 1;
     311        SelInfo.Raw.Gen.u1DefBig    = 1;
     312        SelInfo.Raw.Gen.u1DescType  = 1;
     313        SelInfo.Raw.Gen.u4Type      = X86_SEL_TYPE_EO;
     314    }
    299315    else if (   !(fFlags & DBGF_DISAS_FLAGS_CURRENT_HYPER)
    300316             && (   (pCtxCore && pCtxCore->eflags.Bits.u1VM)
     
    315331        SelInfo.Raw.Gen.u4Type      = X86_SEL_TYPE_EO;
    316332        fRealModeAddress            = true;
    317     }
    318     else if (Sel == DBGF_SEL_FLAT)
    319     {
    320         SelInfo.GCPtrBase           = 0;
    321         SelInfo.cbLimit             = ~0;
    322         SelInfo.fHyper              = false;
    323         SelInfo.fRealMode           = false;
    324         SelInfo.Raw.au32[0]         = 0;
    325         SelInfo.Raw.au32[1]         = 0;
    326         SelInfo.Raw.Gen.u16LimitLow = ~0;
    327         SelInfo.Raw.Gen.u4LimitHigh = ~0;
    328         SelInfo.Raw.Gen.u1Present   = 1;
    329         SelInfo.Raw.Gen.u1Granularity = 1;
    330         SelInfo.Raw.Gen.u1DefBig    = 1;
    331         SelInfo.Raw.Gen.u1DescType  = 1;
    332         SelInfo.Raw.Gen.u4Type      = X86_SEL_TYPE_EO;
    333333    }
    334334    else
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