mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #1026 from lioncash/disasm
arm_disasm: Remove unnecessary code
This commit is contained in:
commit
f48a89af8b
|
@ -854,20 +854,12 @@ Opcode ARM_Disasm::Decode10(uint32_t insn) {
|
||||||
return OP_LDM;
|
return OP_LDM;
|
||||||
return OP_STM;
|
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
|
// Branch with link
|
||||||
if ((offset >> 23) & 1)
|
if ((insn >> 24) & 1)
|
||||||
offset |= 0xff000000;
|
return OP_BL;
|
||||||
|
|
||||||
// Pre-compute the left-shift and the prefetch offset
|
return OP_B;
|
||||||
offset <<= 2;
|
|
||||||
offset += 8;
|
|
||||||
if (is_link == 0)
|
|
||||||
return OP_B;
|
|
||||||
return OP_BL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Opcode ARM_Disasm::Decode11(uint32_t insn) {
|
Opcode ARM_Disasm::Decode11(uint32_t insn) {
|
||||||
|
|
Loading…
Reference in a new issue