VirtualBox

Changeset 1511 in vbox for trunk/src/recompiler


Ignore:
Timestamp:
Mar 15, 2007 12:39:34 PM (18 years ago)
Author:
vboxsync
Message:

Needs more testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/target-i386/op.c

    r1510 r1511  
    496496        sync_seg(env, idx, env->segs[idx].newselector);
    497497    }
     498#if 0
    498499    /* Loading a null selector into a segment register is valid, but using it is most definitely not! */
    499500    if (    (env->cr[0] & (CR0_PE_MASK|CR0_PG_MASK)) == (CR0_PE_MASK|CR0_PG_MASK)
     
    504505        raise_exception(EXCP0D_GPF);
    505506    }
     507#endif
    506508
    507509    A0 = (uint32_t)env->segs[idx].base;
     
    520522        sync_seg(env, idx, env->segs[idx].newselector);
    521523    }
     524#if 0
    522525    /* Loading a null selector into a segment register is valid, but using it is most definitely not! */
    523526    if (    (env->cr[0] & (CR0_PE_MASK|CR0_PG_MASK)) == (CR0_PE_MASK|CR0_PG_MASK)
     
    528531        raise_exception(EXCP0D_GPF);
    529532    }
    530 
     533#endif
    531534    A0 = (uint32_t)(A0 + env->segs[idx].base);
    532535#else
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