From: Gabe Black Date: Wed, 2 Jun 2010 17:58:06 +0000 (-0500) Subject: ARM: Decode the unsigned 8 and 16 bit add and subtract instructions. X-Git-Tag: stable_2012_02_02~1271 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a895514d35d4011f3110ad4d8290287d7b7b6856;p=gem5.git ARM: Decode the unsigned 8 and 16 bit add and subtract instructions. --- diff --git a/src/arch/arm/isa/formats/data.isa b/src/arch/arm/isa/formats/data.isa index 98274e3eb..05d89abf5 100644 --- a/src/arch/arm/isa/formats/data.isa +++ b/src/arch/arm/isa/formats/data.isa @@ -285,17 +285,17 @@ def format ArmParallelAddSubtract() {{ case 0x1: switch (op2) { case 0x0: - return new WarnUnimplemented("uadd16", machInst); + return new Uadd16RegCc(machInst, rd, rn, rm, 0, LSL); case 0x1: - return new WarnUnimplemented("uasx", machInst); + return new UasxRegCc(machInst, rd, rn, rm, 0, LSL); case 0x2: - return new WarnUnimplemented("usax", machInst); + return new UsaxRegCc(machInst, rd, rn, rm, 0, LSL); case 0x3: - return new WarnUnimplemented("usub16", machInst); + return new Usub16RegCc(machInst, rd, rn, rm, 0, LSL); case 0x4: - return new WarnUnimplemented("uadd8", machInst); + return new Uadd8RegCc(machInst, rd, rn, rm, 0, LSL); case 0x7: - return new WarnUnimplemented("usub8", machInst); + return new Usub8RegCc(machInst, rd, rn, rm, 0, LSL); } break; case 0x2: @@ -607,17 +607,23 @@ def format Thumb32DataProcReg() {{ case 0x0: switch (op1) { case 0x1: - return new WarnUnimplemented("uadd16", machInst); + return new Uadd16RegCc(machInst, rd, + rn, rm, 0, LSL); case 0x2: - return new WarnUnimplemented("uasx", machInst); + return new UasxRegCc(machInst, rd, + rn, rm, 0, LSL); case 0x6: - return new WarnUnimplemented("usax", machInst); + return new UsaxRegCc(machInst, rd, + rn, rm, 0, LSL); case 0x5: - return new WarnUnimplemented("usub16", machInst); + return new Usub16RegCc(machInst, rd, + rn, rm, 0, LSL); case 0x0: - return new WarnUnimplemented("uadd8", machInst); + return new Uadd8RegCc(machInst, rd, + rn, rm, 0, LSL); case 0x4: - return new WarnUnimplemented("usub8", machInst); + return new Usub8RegCc(machInst, rd, + rn, rm, 0, LSL); } break; case 0x1: