Add LoongArch support

This commit is contained in:
Jiajie Chen 2024-01-23 17:03:20 +08:00 committed by Rot127
parent 1f5a51cec8
commit 1ac920cc21

View File

@ -1025,7 +1025,7 @@ void PrinterCapstone::decoderEmitterEmitDecodeInstruction(
<< "}\n\n";
std::set<std::string> HasTwoByteInsns = {"ARM"};
std::set<std::string> HasFourByteInsns = {"ARM", "PPC", "AArch64"};
std::set<std::string> HasFourByteInsns = {"ARM", "PPC", "AArch64", "LoongArch"};
if (HasTwoByteInsns.find(TargetName) != HasTwoByteInsns.end())
OS << "FieldFromInstruction(fieldFromInstruction_2, uint16_t)\n"