aboutsummaryrefslogtreecommitdiffstats
path: root/target-arm
diff options
context:
space:
mode:
authorDmitry Koshelev <karaghiozis@gmail.com>2011-10-19 16:14:07 +0000
committerPeter Maydell <peter.maydell@linaro.org>2011-10-19 16:14:07 +0000
commit1518025641c6c067518c871be7f72a524dc68711 (patch)
tree82f19aab17f080d564c97fcc0d215d4cde1d9715 /target-arm
parentda97f52cb35ccf72a4a3d745926ee5e3c263ed07 (diff)
target-arm/machine.c: Restore VFP registers correctly
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>
Diffstat (limited to 'target-arm')
-rw-r--r--target-arm/machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/machine.c b/target-arm/machine.c
index 7d4fc545a..aaee9b9c1 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);