ARM: Add support for DIV/SDIV instructions.
This commit is contained in:
parent
b6203360ef
commit
b94f841969
2 changed files with 11 additions and 1 deletions
|
@ -140,7 +140,7 @@ ISA::clear()
|
|||
|
||||
// See section B4.1.84 of ARM ARM
|
||||
// All values are latest for ARMv7-A profile
|
||||
miscRegs[MISCREG_ID_ISAR0] = 0x01101111;
|
||||
miscRegs[MISCREG_ID_ISAR0] = 0x02101111;
|
||||
miscRegs[MISCREG_ID_ISAR1] = 0x02112111;
|
||||
miscRegs[MISCREG_ID_ISAR2] = 0x21232141;
|
||||
miscRegs[MISCREG_ID_ISAR3] = 0x01112131;
|
||||
|
|
|
@ -394,6 +394,16 @@ def format ArmSignedMultiplies() {{
|
|||
}
|
||||
}
|
||||
break;
|
||||
case 0x1:
|
||||
if (op2 == 0 && m == 0 && ra == 0xf) {
|
||||
return new Sdiv(machInst, rd, rn, rm);
|
||||
}
|
||||
break;
|
||||
case 0x3:
|
||||
if (op2 == 0 && m == 0 && ra == 0xf) {
|
||||
return new Udiv(machInst, rd, rn, rm);
|
||||
}
|
||||
break;
|
||||
case 0x4:
|
||||
if (op2 == 0) {
|
||||
if (m) {
|
||||
|
|
Loading…
Reference in a new issue