Fix hexagon jumps second try (#14867)

* Synchronized files with radareorg/r2hexagon
This commit is contained in:
Rot127 2019-08-21 13:52:02 +02:00 committed by Anton Kochkov
parent c356bae946
commit fb9fa2fb22
5 changed files with 1595 additions and 1595 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@ static int hexagon_v6_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf, in
ut32 data = 0;
memset (op, 0, sizeof (RAnalOp));
data = r_read_le32 (buf);
int size = hexagon_disasm_instruction (data, &hi);
int size = hexagon_disasm_instruction (data, &hi, (ut32) addr);
op->size = size;
if (size <= 0) {
return size;

View File

@ -273,5 +273,5 @@ char* hex_get_sub_regpair(int opreg);
bool hex_if_duplex(ut32 insn_word);
void hex_op_extend(HexOp *op);
void hex_op_extend_off(HexOp *op, int offset);
int hexagon_disasm_instruction(ut32 hi_u32, HexInsn *hi);
int hexagon_disasm_instruction(ut32 hi_u32, HexInsn *hi, ut32 addr);

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
static int disassemble (RAsm *a, RAsmOp *op, const ut8 *buf, int l) {
HexInsn hi = {0};
ut32 data = r_read_le32 (buf);
op->size = hexagon_disasm_instruction (data, &hi);
op->size = hexagon_disasm_instruction (data, &hi, (ut32) a->pc);
r_strbuf_set (&op->buf_asm, hi.mnem);
return op->size;
}