this patch is based on Vince Weaver patch for locked loads/stores.
It was checked against Alpha architecture manual.
Two fixes were done to Vince's patch:
- use a comparison to 1 for lock instead of 0 to be closer to the
- fix reading of cpu_lock in gen_qemu_stql_c.
On top of Vince's modifications, a new flag was added to
gen_store_mem to allocate local temps instead of temps; this flag
should be set when the tcg_gen_qemu_store callback uses brcond
before using the temps or else liveness analysis will get rid of the
This also adds lock printing in cpu_dump_state which can help
Signed-off-by: Laurent Desnogues <laurent.desnogues@xxxxxxxxx>
Description: Text Data