[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 4/6] cputlb: fix assert_cpu_is_self macro
From: |
Emilio G. Cota |
Subject: |
[Qemu-devel] [PATCH v5 4/6] cputlb: fix assert_cpu_is_self macro |
Date: |
Tue, 9 Oct 2018 13:45:55 -0400 |
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
---
accel/tcg/cputlb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c
index 502eea2850..f6b388c961 100644
--- a/accel/tcg/cputlb.c
+++ b/accel/tcg/cputlb.c
@@ -58,9 +58,9 @@
} \
} while (0)
-#define assert_cpu_is_self(this_cpu) do { \
+#define assert_cpu_is_self(cpu) do { \
if (DEBUG_TLB_GATE) { \
- g_assert(!cpu->created || qemu_cpu_is_self(cpu)); \
+ g_assert(!(cpu)->created || qemu_cpu_is_self(cpu)); \
} \
} while (0)
--
2.17.1
- Re: [Qemu-devel] [PATCH v5 1/6] target/alpha: remove tlb_flush from alpha_cpu_initfn, (continued)
- [Qemu-devel] [PATCH v5 6/6] cputlb: read CPUTLBEntry.addr_write atomically, Emilio G. Cota, 2018/10/09
- [Qemu-devel] [PATCH v5 2/6] target/unicore32: remove tlb_flush from uc32_init_fn, Emilio G. Cota, 2018/10/09
- [Qemu-devel] [PATCH v5 5/6] cputlb: serialize tlb updates with env->tlb_lock, Emilio G. Cota, 2018/10/09
- [Qemu-devel] [PATCH v5 3/6] exec: introduce tlb_init, Emilio G. Cota, 2018/10/09
- [Qemu-devel] [PATCH v5 4/6] cputlb: fix assert_cpu_is_self macro,
Emilio G. Cota <=
- Re: [Qemu-devel] [PATCH v5 0/6] per-TLB lock, Richard Henderson, 2018/10/11