VirtualBox

Changeset 8832 in vbox


Ignore:
Timestamp:
May 15, 2008 7:05:53 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30841
Message:

exception 6 is a trap => don't change the PC

File:
1 edited

Legend:

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

    r8826 r8832  
    33383338                /* /1: CMPXCHG8B mem64 or CMPXCHG16B mem128 */
    33393339                case 0xc7:
     3340                    op = (modrm >> 3) & 7;
     3341                    if (op != 1)
     3342                        break;
    33403343                    return false;
    33413344            }
     
    33453348    /* illegal sequence. */
    33463349    Log(("illegal lock sequence %VGv (b=%#x)\n", pc_start, b));
    3347     s->pc = pc; /* XXX: What's the correct value here? */
     3350    /* exception 6 (UD) is a fault, therefore the PC must not be changed */
    33483351    return true;
    33493352#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