VirtualBox

Changeset 2094 in vbox for trunk


Ignore:
Timestamp:
Apr 16, 2007 11:53:57 AM (18 years ago)
Author:
vboxsync
Message:

CPUMR3DisasmInstrCPU fix for real mode disassembly.

File:
1 edited

Legend:

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

    r1574 r2094  
    15461546    State.rc              = VINF_SUCCESS;
    15471547    State.pVM             = pVM;
     1548
    15481549    /*
    15491550     * Get selector information.
    15501551     */
    1551     if (pCtx->eflags.Bits.u1VM == 0)
     1552    if (    (pCtx->cr0 & X86_CR0_PE)
     1553        &&   pCtx->eflags.Bits.u1VM == 0)
    15521554    {
    15531555        if (CPUMAreHiddenSelRegsValid(pVM))
     
    15861588    else
    15871589    {
    1588         /* V86 mode */
    1589         pCpu->mode            = CPUMODE_16BIT;  /* @todo */
     1590        /* real or V86 mode */
     1591        pCpu->mode            = CPUMODE_16BIT;
    15901592        State.GCPtrSegBase    = pCtx->cs * 16;
    15911593        State.GCPtrSegEnd     = 0xFFFFFFFF;
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