VirtualBox

Changeset 8832

Show
Ignore:
Timestamp:
05/15/08 09:05:53 (4 months ago)
Author:
vboxsync
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy