From d488ddd8352e1e25f13e9c1f644dd1d7ebc0b342 Mon Sep 17 00:00:00 2001 From: edgar_igl Date: Tue, 3 Mar 2009 18:07:11 +0000 Subject: CRIS: Avoid endless loops for unstested CRIS cpu-state load/save. Fix several endless loops. Signed-off-by: Stefan Weil Acked-by: Edgar E. Iglesias git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6679 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-cris/machine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'target-cris/machine.c') 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); -- cgit v1.2.3