7 #include "../../asm/arch/mcore/mcore.h"
21 switch (instr->
type) {
89 "gpr cpidr .32 116 0\n"
90 "gpr dcsr .32 120 0\n"
92 "gpr cr16 .32 128 0\n"
95 "gpr capr .32 140 0\n"
96 "gpr pacr .32 144 0\n"
97 "gpr prsr .32 148 0\n"
99 "gpr cr22 .32 152 0\n"
100 "gpr cr23 .32 156 0\n"
101 "gpr cr24 .32 160 0\n"
102 "gpr cr25 .32 164 0\n"
103 "gpr cr26 .32 168 0\n"
104 "gpr cr27 .32 172 0\n"
105 "gpr cr28 .32 176 0\n"
106 "gpr cr29 .32 180 0\n"
107 "gpr cr30 .32 184 0\n"
108 "gpr cr31 .32 188 0\n"
109 "gpr pc .32 192 0\n";
119 .desc =
"MCore analysis plugin",
128 #ifndef RZ_PLUGIN_INCORE
static char * get_reg_profile(RzAnalysis *analysis)
RZ_API RzLibStruct rizin_plugin
static int mcore_analysis(RzAnalysis *analysis, RzAnalysisOp *op, ut64 addr, const ut8 *buf, int len, RzAnalysisOpMask mask)
static int archinfo(RzAnalysis *analysis, int q)
RzAnalysisPlugin rz_analysis_plugin_mcore
static mcore_handle handle
return strdup("=SP r13\n" "=LR r14\n" "=PC r15\n" "=A0 r0\n" "=A1 r1\n" "=A2 r2\n" "=A3 r3\n" "=ZF zf\n" "=SF nf\n" "=OF vf\n" "=CF cf\n" "=SN or0\n" "gpr lr .32 56 0\n" "gpr pc .32 60 0\n" "gpr cpsr .32 64 0 ____tfiae_________________qvczn\n" "gpr or0 .32 68 0\n" "gpr tf .1 64.5 0 thumb\n" "gpr ef .1 64.9 0 endian\n" "gpr jf .1 64.24 0 java\n" "gpr qf .1 64.27 0 sticky_overflow\n" "gpr vf .1 64.28 0 overflow\n" "gpr cf .1 64.29 0 carry\n" "gpr zf .1 64.30 0 zero\n" "gpr nf .1 64.31 0 negative\n" "gpr itc .4 64.10 0 if_then_count\n" "gpr gef .4 64.16 0 great_or_equal\n" "gpr r0 .32 0 0\n" "gpr r1 .32 4 0\n" "gpr r2 .32 8 0\n" "gpr r3 .32 12 0\n" "gpr r4 .32 16 0\n" "gpr r5 .32 20 0\n" "gpr r6 .32 24 0\n" "gpr r7 .32 28 0\n" "gpr r8 .32 32 0\n" "gpr r9 .32 36 0\n" "gpr r10 .32 40 0\n" "gpr r11 .32 44 0\n" "gpr r12 .32 48 0\n" "gpr r13 .32 52 0\n" "gpr r14 .32 56 0\n" "gpr r15 .32 60 0\n" "gpr r16 .32 64 0\n" "gpr r17 .32 68 0\n")
int mcore_init(mcore_handle *handle, const ut8 *buffer, const ut32 size)
mcore_t * mcore_next(mcore_handle *handle)
void mcore_free(mcore_t *instr)
@ RZ_ANALYSIS_OP_TYPE_ICALL
@ RZ_ANALYSIS_OP_TYPE_JMP
@ RZ_ANALYSIS_OP_TYPE_CALL
@ RZ_ANALYSIS_OP_TYPE_CJMP
@ RZ_ANALYSIS_OP_TYPE_ILL
@ RZ_ANALYSIS_OP_TYPE_RET
#define RZ_LOG_ERROR(fmtstr,...)
mcore_field_t args[ARGS_SIZE]
ut64(WINAPI *w32_GetEnabledXStateFeatures)()