Skip to content

Commit

Permalink
Fix mov.l/jsr ESIL for SuperH4 (#15039) ##anal
Browse files Browse the repository at this point in the history
  • Loading branch information
brainstorm authored and radare committed Sep 15, 2019
1 parent a08cb1b commit 4ce4d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/anal/p/anal_sh.c
Expand Up @@ -1042,7 +1042,7 @@ static int movl_pcdisp_reg(RAnal* anal, RAnalOp* op, ut16 code) {
op->src[0] = anal_pcrel_disp_mov (anal, op, code & 0xFF, LONG_SIZE);
//TODO: check it
op->dst = anal_fill_ai_rg (anal, GET_TARGET_REG (code));
r_strbuf_setf (&op->esil, "0x%x,[4],r%d,=", (code & 0xFF) * 4 + (op->addr & 0xfffffffc) + 4, GET_TARGET_REG (code));
r_strbuf_setf (&op->esil, "0x%x,[4],r%d,=", (code & 0xFF) * 4 + (op->addr & 0xfffffff3) + 4, GET_TARGET_REG (code));
return op->size;
}

Expand Down

0 comments on commit 4ce4d85

Please sign in to comment.