diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2009-08-03 08:43:25 -0700 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-08-03 20:33:41 +0400 |
commit | 18b21a2f83a26c3d6a9e7f0bdc4e8eb2b177e8f6 (patch) | |
tree | 7e7a3100d4e34f207748ff34ab1be97231b3e467 /target-ppc/helper.c | |
parent | 174c80d51612ce33960965c75e40c922599a503e (diff) |
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/helper.c')
-rw-r--r-- | target-ppc/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c index b7162dfe58..6eca2e53c3 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -2805,7 +2805,7 @@ void cpu_ppc_reset (void *opaque) env->msr |= (1ULL << MSR_SF); #endif hreg_compute_hflags(env); - env->reserve = (target_ulong)-1ULL; + env->reserve_addr = (target_ulong)-1ULL; /* Be sure no exception or interrupt is pending */ env->pending_interrupts = 0; env->exception_index = POWERPC_EXCP_NONE; |