aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-03 18:07:11 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-03 18:07:11 +0000
commitd488ddd8352e1e25f13e9c1f644dd1d7ebc0b342 (patch)
tree41b90962e3ff4979886cd24edcbcafc7f7a0e5fd
parent5368a4228ff5dd5ec95d0416f23bcfc9e556f37b (diff)
downloadqemu-d488ddd8352e1e25f13e9c1f644dd1d7ebc0b342.zip
qemu-d488ddd8352e1e25f13e9c1f644dd1d7ebc0b342.tar.gz
qemu-d488ddd8352e1e25f13e9c1f644dd1d7ebc0b342.tar.bz2
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
-rw-r--r--target-cris/machine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target-cris/machine.c b/target-cris/machine.c
index b17db23..2d3396d 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);