From: Ali Saidi Date: Thu, 5 May 2011 01:38:26 +0000 (-0500) Subject: ARM: Fix small bug with vcvt instruction X-Git-Tag: stable_2012_02_02~354 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=632cf8dd80f29f85097aa90cd704ca01cc57ff39;p=gem5.git ARM: Fix small bug with vcvt instruction --- diff --git a/src/arch/arm/isa/formats/fp.isa b/src/arch/arm/isa/formats/fp.isa index 2267ee34f..18b128836 100644 --- a/src/arch/arm/isa/formats/fp.isa +++ b/src/arch/arm/isa/formats/fp.isa @@ -2349,8 +2349,8 @@ let {{ case 0x7: if (opc3 == 0x3) { if (single) { - vm = (IntRegIndex)(bits(machInst, 5) | - (bits(machInst, 3, 0) << 1)); + vd = (IntRegIndex)((bits(machInst, 22) << 5) | + (bits(machInst, 15, 12) << 1)); return new VcvtFpSFpD(machInst, vd, vm); } else { vd = (IntRegIndex)(bits(machInst, 22) |