cputlb: fix assert_cpu_is_self macro

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <20181009174557.16125-5-cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Emilio G. Cota 2018-10-09 13:45:55 -04:00 committed by Richard Henderson
parent 5005e2537d
commit ea9025cb49

View File

@ -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)