Patchwork [7/7] target-arm/machine.c: Restore VFP registers correctly

login
register
mail settings
Submitter Peter Maydell
Date Oct. 20, 2011, 1:16 p.m.
Message ID <1319116568-2663-8-git-send-email-peter.maydell@linaro.org>
Download mbox | patch
Permalink /patch/120810/
State New
Headers show

Comments

Peter Maydell - Oct. 20, 2011, 1:16 p.m.
From: Dmitry Koshelev <karaghiozis@gmail.com>

Fix the restoring of VFP registers on vmload.

Signed-off-by: Dmitry Koshelev <karaghiozis@gmail.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
[peter.maydell: improved commit message a little]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 target-arm/machine.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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);