mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
174c80d516
commit
18b21a2f83
5 changed files with 17 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue