ARM: Fix small bug with vcvt instruction
authorAli Saidi <Ali.Saidi@ARM.com>
Thu, 5 May 2011 01:38:26 +0000 (20:38 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Thu, 5 May 2011 01:38:26 +0000 (20:38 -0500)
src/arch/arm/isa/formats/fp.isa

index 2267ee34f6733ee2ac09d0ee3816d124c328f0e7..18b1288369a8274d83e8e85b7466f121d8addb44 100644 (file)
@@ -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) |