[Qemu-devel] Fwd: [RFC] Adding multithreads to LDREX/STREX.

2015-03-03 Thread Mark Burton
Paolo - here is a partially cleaned up patch - it’s still not quite right - but maybe its enough so that you can see what we’re doing. There are changes in here that wouldn’t be sensible to upstream - like changing the address from a 64 to a 32 bit and needlessly moving it about - thats just bec

Re: [Qemu-devel] Fwd: [RFC] Adding multithreads to LDREX/STREX.

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 17:47, Mark Burton wrote: > +inline void arm_exclusive_lock(void) > +{ > +if (!cpu_have_exclusive_lock) { > +qemu_mutex_lock(&cpu_exclusive_lock); > +cpu_have_exclusive_lock = true; > +} > +} > + > +inline void arm_exclusive_unlock(void) > +{ > +if (cpu_h