diff options
Diffstat (limited to 'target-mips/machine.c')
-rw-r--r-- | target-mips/machine.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target-mips/machine.c b/target-mips/machine.c index 543778dc5d..1c3a8c99c4 100644 --- a/target-mips/machine.c +++ b/target-mips/machine.c @@ -91,7 +91,8 @@ void cpu_save(QEMUFile *f, void *opaque) qemu_put_sbe32s(f, &env->error_code); qemu_put_be32s(f, &env->hflags); qemu_put_betls(f, &env->btarget); - qemu_put_sbe32s(f, &env->bcond); + i = env->bcond; + qemu_put_sbe32s(f, &i); /* Save remaining CP1 registers */ qemu_put_sbe32s(f, &env->CP0_Index); @@ -240,7 +241,8 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id) qemu_get_sbe32s(f, &env->error_code); qemu_get_be32s(f, &env->hflags); qemu_get_betls(f, &env->btarget); - qemu_get_sbe32s(f, &env->bcond); + qemu_get_sbe32s(f, &i); + env->bcond = i; /* Load remaining CP1 registers */ qemu_get_sbe32s(f, &env->CP0_Index); |