VirtualBox

Changeset 52520 in vbox for trunk/src/recompiler


Ignore:
Timestamp:
Aug 28, 2014 5:06:37 PM (10 years ago)
Author:
vboxsync
Message:

REM: Truncate linear addresses in outside of 64-bit mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/target-i386/cpu.h

    r47875 r52520  
    11961196{
    11971197    *cs_base = env->segs[R_CS].base;
    1198     *pc = *cs_base + env->eip;
     1198    if (env->hflags & HF_CS64_MASK)
     1199        *pc = *cs_base + env->eip;
     1200    else
     1201        *pc = (uint32_t)(*cs_base + env->eip);
    11991202    *flags = env->hflags |
    12001203        (env->eflags & (IOPL_MASK | TF_MASK | RF_MASK | VM_MASK));
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