/* Capstone Disassembly Engine */ /* By Nguyen Anh Quynh , 2013-2019 */ /* Rot127 , 2022-2023 */ /* Jiajie Chen , 2024 */ /* Yanglin Xun <1109673069@qq.com>, 2024 */ #include #include "LoongArchDisassemblerExtension.h" #define GET_SUBTARGETINFO_ENUM #include "LoongArchGenSubtargetInfo.inc" bool LoongArch_getFeatureBits(unsigned int mode, unsigned int feature) { // handle loongarch32/64 if (feature == LoongArch_Feature64Bit) { if (mode & CS_MODE_LOONGARCH64) return true; return false; } // otherwise we support everything return true; }