Ignore some errors while disassembling sparc{,64} binaries
This commit is contained in:
parent
44a9c15a29
commit
95ababcdfa
@ -53,10 +53,17 @@ static int _sparc_decode(ArchPlugin * plugin, ArchInstructionCall * call)
|
|||||||
opcode = u32 & (0x00800000 | (0xf << 25));
|
opcode = u32 & (0x00800000 | (0xf << 25));
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
return -1;
|
{
|
||||||
|
call->name = "dw";
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
if((ai = helper->get_instruction_by_opcode(helper->arch, 32, opcode))
|
if((ai = helper->get_instruction_by_opcode(helper->arch, 32, opcode))
|
||||||
== NULL)
|
== NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
call->name = ai->name;
|
||||||
|
call->operands[0].definition = ai->op1;
|
||||||
|
call->operands[1].definition = ai->op2;
|
||||||
|
call->operands[2].definition = ai->op3;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user