mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Fix disassembling of PAUSE instruction. Fixes PR10900. Also fixed NOP disassembling to ignore OpSize and REX.W.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139484 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -325,7 +325,7 @@ InstructionContext RecognizableInstr::insnContext() const {
|
||||
insnContext = IC_OPSIZE;
|
||||
else if (Prefix == X86Local::XD)
|
||||
insnContext = IC_XD;
|
||||
else if (Prefix == X86Local::XS)
|
||||
else if (Prefix == X86Local::XS || Prefix == X86Local::REP)
|
||||
insnContext = IC_XS;
|
||||
else
|
||||
insnContext = IC;
|
||||
@@ -882,6 +882,7 @@ void RecognizableInstr::emitDecodePath(DisassemblerTables &tables) const {
|
||||
}
|
||||
opcodeToSet = 0xd8 + (Prefix - X86Local::D8);
|
||||
break;
|
||||
case X86Local::REP:
|
||||
default:
|
||||
opcodeType = ONEBYTE;
|
||||
switch (Opcode) {
|
||||
|
||||
Reference in New Issue
Block a user