aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-19 00:26:31 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-19 00:26:31 +0000
commit2ba2d706079d73fa45ef8bb112470488fa7837d9 (patch)
tree7fa783e99d6cd52e2d817998d5a9d966fd04117e
parentkqemu: only compile kqemu.o if actually needed (diff)
downloadqemu-kvm-2ba2d706079d73fa45ef8bb112470488fa7837d9.tar.gz
qemu-kvm-2ba2d706079d73fa45ef8bb112470488fa7837d9.tar.bz2
qemu-kvm-2ba2d706079d73fa45ef8bb112470488fa7837d9.zip
Fix indices in Menelaus save/load.
Version increase won't be helpful here. Spotted by Sergei Steshenko / Blau Wirbel. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7186 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/twl92230.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/twl92230.c b/hw/twl92230.c
index 6b0a0b74f..f0e73182f 100644
--- a/hw/twl92230.c
+++ b/hw/twl92230.c
@@ -777,9 +777,9 @@ static void menelaus_save(QEMUFile *f, void *opaque)
qemu_put_8s(f, &s->vcore[2]);
qemu_put_8s(f, &s->vcore[3]);
qemu_put_8s(f, &s->vcore[4]);
- qemu_put_8s(f, &s->dcdc[3]);
- qemu_put_8s(f, &s->dcdc[3]);
- qemu_put_8s(f, &s->dcdc[3]);
+ qemu_put_8s(f, &s->dcdc[0]);
+ qemu_put_8s(f, &s->dcdc[1]);
+ qemu_put_8s(f, &s->dcdc[2]);
qemu_put_8s(f, &s->ldo[0]);
qemu_put_8s(f, &s->ldo[1]);
qemu_put_8s(f, &s->ldo[2]);
@@ -831,9 +831,9 @@ static int menelaus_load(QEMUFile *f, void *opaque, int version_id)
qemu_get_8s(f, &s->vcore[2]);
qemu_get_8s(f, &s->vcore[3]);
qemu_get_8s(f, &s->vcore[4]);
- qemu_get_8s(f, &s->dcdc[3]);
- qemu_get_8s(f, &s->dcdc[3]);
- qemu_get_8s(f, &s->dcdc[3]);
+ qemu_get_8s(f, &s->dcdc[0]);
+ qemu_get_8s(f, &s->dcdc[1]);
+ qemu_get_8s(f, &s->dcdc[2]);
qemu_get_8s(f, &s->ldo[0]);
qemu_get_8s(f, &s->ldo[1]);
qemu_get_8s(f, &s->ldo[2]);