Commit 2ba2d706079d73fa45ef8bb112470488fa7837d9
1 parent
2d6ebb0c
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
Showing
1 changed file
with
6 additions
and
6 deletions
hw/twl92230.c
... | ... | @@ -777,9 +777,9 @@ static void menelaus_save(QEMUFile *f, void *opaque) |
777 | 777 | qemu_put_8s(f, &s->vcore[2]); |
778 | 778 | qemu_put_8s(f, &s->vcore[3]); |
779 | 779 | qemu_put_8s(f, &s->vcore[4]); |
780 | - qemu_put_8s(f, &s->dcdc[3]); | |
781 | - qemu_put_8s(f, &s->dcdc[3]); | |
782 | - qemu_put_8s(f, &s->dcdc[3]); | |
780 | + qemu_put_8s(f, &s->dcdc[0]); | |
781 | + qemu_put_8s(f, &s->dcdc[1]); | |
782 | + qemu_put_8s(f, &s->dcdc[2]); | |
783 | 783 | qemu_put_8s(f, &s->ldo[0]); |
784 | 784 | qemu_put_8s(f, &s->ldo[1]); |
785 | 785 | qemu_put_8s(f, &s->ldo[2]); |
... | ... | @@ -831,9 +831,9 @@ static int menelaus_load(QEMUFile *f, void *opaque, int version_id) |
831 | 831 | qemu_get_8s(f, &s->vcore[2]); |
832 | 832 | qemu_get_8s(f, &s->vcore[3]); |
833 | 833 | qemu_get_8s(f, &s->vcore[4]); |
834 | - qemu_get_8s(f, &s->dcdc[3]); | |
835 | - qemu_get_8s(f, &s->dcdc[3]); | |
836 | - qemu_get_8s(f, &s->dcdc[3]); | |
834 | + qemu_get_8s(f, &s->dcdc[0]); | |
835 | + qemu_get_8s(f, &s->dcdc[1]); | |
836 | + qemu_get_8s(f, &s->dcdc[2]); | |
837 | 837 | qemu_get_8s(f, &s->ldo[0]); |
838 | 838 | qemu_get_8s(f, &s->ldo[1]); |
839 | 839 | qemu_get_8s(f, &s->ldo[2]); | ... | ... |