From: Gabe Black Date: Wed, 2 Jun 2010 17:58:11 +0000 (-0500) Subject: ARM: Decode the setend instruction. X-Git-Tag: stable_2012_02_02~1185 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fa713a66c380f38297e2306ec3d67e5fbb6f6c2;p=gem5.git ARM: Decode the setend instruction. --- diff --git a/src/arch/arm/isa/formats/data.isa b/src/arch/arm/isa/formats/data.isa index 6fb698e75..19a9ee9fe 100644 --- a/src/arch/arm/isa/formats/data.isa +++ b/src/arch/arm/isa/formats/data.isa @@ -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); } diff --git a/src/arch/arm/isa/formats/uncond.isa b/src/arch/arm/isa/formats/uncond.isa index d305ee996..fd2f66e75 100644 --- a/src/arch/arm/isa/formats/uncond.isa +++ b/src/arch/arm/isa/formats/uncond.isa @@ -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); }