mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix the x86 disassembler to at least print the lock prefix if it is the first
prefix. Added a FIXME to remind us this still does not work when it is not the first prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -405,13 +405,13 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const {
|
||||
return FILTER_STRONG;
|
||||
|
||||
|
||||
// Filter out artificial instructions
|
||||
// Filter out artificial instructions but leave in the LOCK_PREFIX so it is
|
||||
// printed as a separate "instruction".
|
||||
|
||||
if (Name.find("_Int") != Name.npos ||
|
||||
Name.find("Int_") != Name.npos ||
|
||||
Name.find("_NOREX") != Name.npos ||
|
||||
Name.find("2SDL") != Name.npos ||
|
||||
Name == "LOCK_PREFIX")
|
||||
Name.find("2SDL") != Name.npos)
|
||||
return FILTER_STRONG;
|
||||
|
||||
// Filter out instructions with segment override prefixes.
|
||||
|
Reference in New Issue
Block a user