ARM: Decode the setend instruction.

This commit is contained in:
Gabe Black 2010-06-02 12:58:11 -05:00
parent 4683cd1655
commit 6fa713a66c
2 changed files with 2 additions and 2 deletions

View file

@ -1024,7 +1024,7 @@ def format Thumb16Misc() {{
{
const uint32_t opBits = bits(machInst, 7, 5);
if (opBits == 2) {
return new WarnUnimplemented("setend", machInst);
return new Setend(machInst, bits(machInst, 3));
} else if (opBits == 3) {
return new WarnUnimplemented("cps", machInst);
}

View file

@ -44,7 +44,7 @@ def format ArmUnconditional() {{
const uint32_t op2 = bits(machInst, 7, 4);
if (op1 == 0x10) {
if (bits((uint32_t)rn, 0) == 1 && op2 == 0) {
return new WarnUnimplemented("setend", machInst);
return new Setend(machInst, bits(machInst, 9));
} else if (bits((uint32_t)rn, 0) == 0 && bits(op2, 1) == 0) {
return new WarnUnimplemented("cps", machInst);
}