X86: Don't treat the REX prefixes as prefixes in 32 bit modes. These are inc/dec instructions.
This commit is contained in:
@@ -136,7 +136,10 @@ namespace X86ISA
|
||||
{
|
||||
uint8_t prefix = Prefixes[nextByte];
|
||||
State nextState = PrefixState;
|
||||
if(prefix)
|
||||
// REX prefixes are only recognized in 64 bit mode.
|
||||
if (prefix == RexPrefix && emi.mode.submode != SixtyFourBitMode)
|
||||
prefix = 0;
|
||||
if (prefix)
|
||||
consumeByte();
|
||||
switch(prefix)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user