Merge pull request #1026 from lioncash/disasm

arm_disasm: Remove unnecessary code
master
Lioncash 2015-08-07 07:29:27 +07:00
commit f48a89af8b
1 changed files with 4 additions and 12 deletions

@ -854,20 +854,12 @@ Opcode ARM_Disasm::Decode10(uint32_t insn) {
return OP_LDM;
return OP_STM;
}
// Branch or Branch with link
uint8_t is_link = (insn >> 24) & 1;
uint32_t offset = insn & 0xffffff;
// Sign-extend the 24-bit offset
if ((offset >> 23) & 1)
offset |= 0xff000000;
// Pre-compute the left-shift and the prefetch offset
offset <<= 2;
offset += 8;
if (is_link == 0)
return OP_B;
// Branch with link
if ((insn >> 24) & 1)
return OP_BL;
return OP_B;
}
Opcode ARM_Disasm::Decode11(uint32_t insn) {