[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 04/38] translate-all: remove volatile from have_tb_loc
From: |
Emilio G. Cota |
Subject: |
[Qemu-devel] [RFC 04/38] translate-all: remove volatile from have_tb_lock |
Date: |
Sun, 23 Aug 2015 20:23:33 -0400 |
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 <address@hidden>
---
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
- [Qemu-devel] [RFC 00/38] MTTCG: i386, user+system mode, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 04/38] translate-all: remove volatile from have_tb_lock,
Emilio G. Cota <=
- [Qemu-devel] [RFC 06/38] seqlock: add missing 'inline' to seqlock_read_retry, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 02/38] hw/i386/kvmvapic: add missing include of tcg.h, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 01/38] cpu-exec: add missing mmap_lock in tb_find_slow, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 10/38] translate-all: remove obsolete comment about l1_map, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 18/38] tcg: add fences, Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 12/38] linux-user: call rcu_(un)register_thread on pthread_(exit|create), Emilio G. Cota, 2015/08/23
- [Qemu-devel] [RFC 05/38] thread-posix: inline qemu_spin functions, Emilio G. Cota, 2015/08/23