From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTfZ2-0006uZ-S7 for qemu-devel@nongnu.org; Sun, 23 Aug 2015 20:24:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTfYz-0000ei-LQ for qemu-devel@nongnu.org; Sun, 23 Aug 2015 20:24:40 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTfYz-0000eC-Id for qemu-devel@nongnu.org; Sun, 23 Aug 2015 20:24:37 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A7B4920853 for ; Sun, 23 Aug 2015 20:24:36 -0400 (EDT) From: "Emilio G. Cota" Date: Sun, 23 Aug 2015 20:23:33 -0400 Message-Id: <1440375847-17603-5-git-send-email-cota@braap.org> In-Reply-To: <1440375847-17603-1-git-send-email-cota@braap.org> References: <1440375847-17603-1-git-send-email-cota@braap.org> Subject: [Qemu-devel] [RFC 04/38] translate-all: remove volatile from have_tb_lock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, mttcg@listserver.greensocs.com Cc: mark.burton@greensocs.com, a.rigo@virtualopensystems.com, guillaume.delbergue@greensocs.com, pbonzini@redhat.com, alex.bennee@linaro.org, Frederic Konrad This is a thread-local variable and therefore all changes to it will be seen in order by the owning thread. There is no need for it to be volatile. Signed-off-by: Emilio G. Cota --- translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate-all.c b/translate-all.c index 901a35e..31239db 100644 --- a/translate-all.c +++ b/translate-all.c @@ -130,7 +130,7 @@ static void *l1_map[V_L1_SIZE]; TCGContext tcg_ctx; /* translation block context */ -__thread volatile int have_tb_lock; +__thread int have_tb_lock; void tb_lock(void) { -- 1.9.1