|
13 | 13 | reg_map_q as arm_regs_q, |
14 | 14 | reg_map_s as arm_regs_s |
15 | 15 | ) |
| 16 | + |
| 17 | +from qiling.arch.cortex_m_const import ( |
| 18 | + reg_map as conretx_m_regs |
| 19 | +) |
| 20 | + |
16 | 21 | from qiling.arch.arm64_const import ( |
17 | 22 | reg_map as arm64_regs, |
18 | 23 | reg_map_v as arm64_regs_v, |
19 | 24 | reg_map_fp as arm64_reg_map_fp |
20 | 25 | ) |
| 26 | + |
21 | 27 | from qiling.arch.mips_const import ( |
22 | 28 | reg_map as mips_regs_gpr |
23 | 29 | ) |
| 30 | + |
24 | 31 | from qiling.arch.x86_const import ( |
25 | 32 | reg_map_32 as x86_regs_32, |
26 | 33 | reg_map_64 as x86_regs_64, |
@@ -133,7 +140,7 @@ def __load_regsmap(archtype: QL_ARCH, xmltree: ElementTree.ElementTree) -> Seque |
133 | 140 | QL_ARCH.X86: dict(**x86_regs_32, **x86_regs_misc, **x86_regs_cr, **x86_regs_st, **x86_regs_xmm), |
134 | 141 | QL_ARCH.X8664: dict(**x86_regs_64, **x86_regs_misc, **x86_regs_cr, **x86_regs_st, **x86_regs_xmm, **x86_regs_ymm), |
135 | 142 | QL_ARCH.ARM: dict(**arm_regs, **arm_regs_vfp, **arm_regs_q, **arm_regs_s), |
136 | | - QL_ARCH.CORTEX_M: arm_regs, |
| 143 | + QL_ARCH.CORTEX_M: dict(**conretx_m_regs), |
137 | 144 | QL_ARCH.ARM64: dict(**arm64_regs, **arm64_regs_v, **arm64_reg_map_fp), |
138 | 145 | QL_ARCH.MIPS: dict(**mips_regs_gpr) |
139 | 146 | }[archtype] |
|
0 commit comments