From 4ce4d858d60afdbe86a05cb1fd6d1edf6a0738fc Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Sun, 15 Sep 2019 19:38:21 +1000 Subject: [PATCH] Fix mov.l/jsr ESIL for SuperH4 (#15039) ##anal --- libr/anal/p/anal_sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/anal/p/anal_sh.c b/libr/anal/p/anal_sh.c index 7d081cb9d7036..da9253db9865a 100644 --- a/libr/anal/p/anal_sh.c +++ b/libr/anal/p/anal_sh.c @@ -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; }