diff options
author | Nathan Froyd | 2009-08-03 17:43:25 +0200 |
---|---|---|
committer | malc | 2009-08-03 18:33:41 +0200 |
commit | 18b21a2f83a26c3d6a9e7f0bdc4e8eb2b177e8f6 (patch) | |
tree | 7e7a3100d4e34f207748ff34ab1be97231b3e467 /target-ppc/machine.c | |
parent | target-ppc: add cpu_set_tls (diff) | |
download | qemu-18b21a2f83a26c3d6a9e7f0bdc4e8eb2b177e8f6.tar.gz qemu-18b21a2f83a26c3d6a9e7f0bdc4e8eb2b177e8f6.tar.xz qemu-18b21a2f83a26c3d6a9e7f0bdc4e8eb2b177e8f6.zip |
target-ppc: retain l{w,d}arx loaded value
We do this so we can check on the corresponding stc{w,d}x. whether the
value has changed. It's a poor man's form of implementing atomic
operations and is valid only for NPTL usermode Linux emulation.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'target-ppc/machine.c')
-rw-r--r-- | target-ppc/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/machine.c b/target-ppc/machine.c index 99ba3eb2ad..deb2e2d801 100644 --- a/target-ppc/machine.c +++ b/target-ppc/machine.c @@ -20,7 +20,7 @@ void cpu_save(QEMUFile *f, void *opaque) for (i = 0; i < 8; i++) qemu_put_be32s(f, &env->crf[i]); qemu_put_betls(f, &env->xer); - qemu_put_betls(f, &env->reserve); + qemu_put_betls(f, &env->reserve_addr); qemu_put_betls(f, &env->msr); for (i = 0; i < 4; i++) qemu_put_betls(f, &env->tgpr[i]); @@ -107,7 +107,7 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id) for (i = 0; i < 8; i++) qemu_get_be32s(f, &env->crf[i]); qemu_get_betls(f, &env->xer); - qemu_get_betls(f, &env->reserve); + qemu_get_betls(f, &env->reserve_addr); qemu_get_betls(f, &env->msr); for (i = 0; i < 4; i++) qemu_get_betls(f, &env->tgpr[i]); |