diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-29 01:18:52 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-29 01:18:52 +0000 |
commit | 1ba74fb8f14389282e1b86579a46a38b5710e193 (patch) | |
tree | 9a994e2b0b9367ee7ff419f5e3a48a1efee4e6da /target-mips/machine.c | |
parent | 92e90443046963309bbe24f306792501f95b938f (diff) |
target-mips: optimize gen_compute_branch()
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6936 c046a42c-6fe2-441c-8c8c-71466251a162
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); |