/src/capstonenext/arch/LoongArch/LoongArchDisassemblerExtension.c
Line | Count | Source (jump to first uncovered line) |
1 | | /* Capstone Disassembly Engine */ |
2 | | /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2019 */ |
3 | | /* Rot127 <unisono@quyllur.org>, 2022-2023 */ |
4 | | /* Jiajie Chen <c@jia.je>, 2024 */ |
5 | | /* Yanglin Xun <1109673069@qq.com>, 2024 */ |
6 | | |
7 | | #include <capstone/loongarch.h> |
8 | | |
9 | | #include "LoongArchDisassemblerExtension.h" |
10 | | |
11 | | #define GET_SUBTARGETINFO_ENUM |
12 | | #include "LoongArchGenSubtargetInfo.inc" |
13 | | |
14 | | bool LoongArch_getFeatureBits(unsigned int mode, unsigned int feature) |
15 | 0 | { |
16 | | // handle loongarch32/64 |
17 | 0 | if (feature == LoongArch_Feature64Bit) { |
18 | 0 | if (mode & CS_MODE_LOONGARCH64) |
19 | 0 | return true; |
20 | 0 | return false; |
21 | 0 | } |
22 | | |
23 | | // otherwise we support everything |
24 | 0 | return true; |
25 | 0 | } |