From 632cf8dd80f29f85097aa90cd704ca01cc57ff39 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 4 May 2011 20:38:26 -0500 Subject: [PATCH] ARM: Fix small bug with vcvt instruction --- src/arch/arm/isa/formats/fp.isa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) | -- 2.30.2