diff options
author | edgar_igl | 2009-03-03 19:07:11 +0100 |
---|---|---|
committer | edgar_igl | 2009-03-03 19:07:11 +0100 |
commit | d488ddd8352e1e25f13e9c1f644dd1d7ebc0b342 (patch) | |
tree | 41b90962e3ff4979886cd24edcbcafc7f7a0e5fd /target-cris | |
parent | Fix SDL on evdev hosts (Anthony Liguori) (diff) | |
download | qemu-d488ddd8352e1e25f13e9c1f644dd1d7ebc0b342.tar.gz qemu-d488ddd8352e1e25f13e9c1f644dd1d7ebc0b342.tar.xz qemu-d488ddd8352e1e25f13e9c1f644dd1d7ebc0b342.zip |
CRIS: Avoid endless loops for unstested CRIS cpu-state load/save.
Fix several endless loops.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6679 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/machine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target-cris/machine.c b/target-cris/machine.c index b17db23214..2d3396d8b3 100644 --- a/target-cris/machine.c +++ b/target-cris/machine.c @@ -34,14 +34,14 @@ void cpu_save(QEMUFile *f, void *opaque) qemu_put_be32(f, env->cc_size); qemu_put_be32(f, env->cc_x); - for (s = 0; s < 4; i++) { + for (s = 0; s < 4; s++) { for (i = 0; i < 16; i++) qemu_put_be32(f, env->sregs[s][i]); } qemu_put_be32(f, env->mmu_rand_lfsr); for (mmu = 0; mmu < 2; mmu++) { - for (s = 0; s < 4; i++) { + for (s = 0; s < 4; s++) { for (i = 0; i < 16; i++) { qemu_put_be32(f, env->tlbsets[mmu][s][i].lo); qemu_put_be32(f, env->tlbsets[mmu][s][i].hi); @@ -77,14 +77,14 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id) env->cc_size = qemu_get_be32(f); env->cc_x = qemu_get_be32(f); - for (s = 0; s < 4; i++) { + for (s = 0; s < 4; s++) { for (i = 0; i < 16; i++) env->sregs[s][i] = qemu_get_be32(f); } env->mmu_rand_lfsr = qemu_get_be32(f); for (mmu = 0; mmu < 2; mmu++) { - for (s = 0; s < 4; i++) { + for (s = 0; s < 4; s++) { for (i = 0; i < 16; i++) { env->tlbsets[mmu][s][i].lo = qemu_get_be32(f); env->tlbsets[mmu][s][i].hi = qemu_get_be32(f); |