mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Fix hexagon jumps second try (#14867)
* Synchronized files with radareorg/r2hexagon
This commit is contained in:
parent
c356bae946
commit
fb9fa2fb22
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
|
@ -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
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user