From: Emilio G. Cota Date: Tue, 9 Oct 2018 17:45:55 +0000 (-0400) Subject: cputlb: fix assert_cpu_is_self macro X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ea9025cb49027d9b3c4f48c56602351b9cf65ff1;p=qemu.git cputlb: fix assert_cpu_is_self macro Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota Message-Id: <20181009174557.16125-5-cota@braap.org> Signed-off-by: Richard Henderson --- 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)