replace spinlock by QemuMutex.
authorKONRAD Frederic <fred.konrad@greensocs.com>
Mon, 10 Aug 2015 15:27:02 +0000 (17:27 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Sep 2015 13:34:55 +0000 (15:34 +0200)
commit677ef6230b603571ae05125db469f7b4c8912a77
tree93ee681232b120a132590ef8e456809b0c9e3a18
parentd5f8d61390de8f2acc0da93f184e421a709cb503
replace spinlock by QemuMutex.

spinlock is only used in two cases:
  * cpu-exec.c: to protect TranslationBlock
  * mem_helper.c: for lock helper in target-i386 (which seems broken).

It's a pthread_mutex_t in user-mode, so we can use QemuMutex directly,
with an #ifdef.  The #ifdef will be removed when multithreaded TCG
will need the mutex as well.

Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Message-Id: <1439220437-23957-5-git-send-email-fred.konrad@greensocs.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
[Merge Emilio G. Cota's patch to remove volatile. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpu-exec.c
include/exec/exec-all.h
linux-user/main.c
target-i386/cpu.h
target-i386/mem_helper.c
target-i386/translate.c
tcg/tcg.h
translate-all.c