From patchwork Thu Oct 20 13:16:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 120810 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 99A54B70D1 for ; Fri, 21 Oct 2011 00:26:46 +1100 (EST) Received: from localhost ([::1]:42196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGsds-0007D8-DT for incoming@patchwork.ozlabs.org; Thu, 20 Oct 2011 09:26:40 -0400 Received: from eggs.gnu.org ([140.186.70.92]:35525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGsdl-0007Cn-6c for qemu-devel@nongnu.org; Thu, 20 Oct 2011 09:26:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGsdg-0001xq-NS for qemu-devel@nongnu.org; Thu, 20 Oct 2011 09:26:33 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:51802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGsdg-0001xP-Gk for qemu-devel@nongnu.org; Thu, 20 Oct 2011 09:26:28 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1RGsTg-0000hc-P2; Thu, 20 Oct 2011 14:16:08 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Thu, 20 Oct 2011 14:16:08 +0100 Message-Id: <1319116568-2663-8-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1319116568-2663-1-git-send-email-peter.maydell@linaro.org> References: <1319116568-2663-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: Anthony Liguori Subject: [Qemu-devel] [PATCH 7/7] target-arm/machine.c: Restore VFP registers correctly X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Dmitry Koshelev Fix the restoring of VFP registers on vmload. Signed-off-by: Dmitry Koshelev Reviewed-by: Juan Quintela [peter.maydell: improved commit message a little] Signed-off-by: Peter Maydell --- target-arm/machine.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-arm/machine.c b/target-arm/machine.c index 7d4fc54..aaee9b9 100644 --- a/target-arm/machine.c +++ b/target-arm/machine.c @@ -189,7 +189,7 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id) env->vfp.vec_stride = qemu_get_be32(f); if (arm_feature(env, ARM_FEATURE_VFP3)) { - for (i = 0; i < 16; i++) { + for (i = 16; i < 32; i++) { CPU_DoubleU u; u.l.upper = qemu_get_be32(f); u.l.lower = qemu_get_be32(f);