mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Allow the MCDisassembler to return a "soft fail" status code, indicating an instruction that is disassemblable, but invalid. Only used for ARM UNPREDICTABLE instructions at the moment.
Patch by James Molloy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137830 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -128,5 +128,15 @@ void DisassemblerEmitter::run(raw_ostream &OS) {
|
||||
return;
|
||||
}
|
||||
|
||||
// ARM and Thumb have a CHECK() macro to deal with DecodeStatuses.
|
||||
if (Target.getName() == "ARM" ||
|
||||
Target.getName() == "Thumb") {
|
||||
FixedLenDecoderEmitter(Records,
|
||||
"CHECK(S, ", ");",
|
||||
"S", "Fail",
|
||||
"DecodeStatus S = Success;\n(void)S;").run(OS);
|
||||
return;
|
||||
}
|
||||
|
||||
FixedLenDecoderEmitter(Records).run(OS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user