linux-user: lock tcg
authorAlexander Graf <agraf@suse.de>
Thu, 5 Jul 2012 15:31:39 +0000 (17:31 +0200)
committerhyokeun <hyokeun.jeon@samsung.com>
Tue, 6 Sep 2016 06:55:32 +0000 (15:55 +0900)
commit1336233c814d00a5f90b22e28058c3f848bbb985
treeabd8023a43a814c9b07e1d5831a38aad7de2e081
parentb52bb5365686c78fb8c0945eddcacc0da0efdb4a
linux-user: lock tcg

The tcg code generator is not thread safe. Lock its generation between
different threads.

Signed-off-by: Alexander Graf <agraf@suse.de>
[AF: Rebased onto exec.c/translate-all.c split for 1.4]
[AF: Rebased for v2.1.0-rc0]
[AF: Rebased onto tcg_gen_code_common() drop for v2.5.0-rc0]
[AF: Rebased for v2.7.0-rc2]
Signed-off-by: Andreas Färber <afaerber@suse.de>
linux-user/mmap.c
tcg/tcg.c
tcg/tcg.h