Commit e85ef538 authored by Richard Henderson's avatar Richard Henderson
Browse files

tcg: Use QEMU_BUILD_BUG_ON for CPU_TLB_ENTRY_BITS



Rather than a hand-coded version of the same thing.

Reviewed-by: default avatarAndreas Färber <afaerber@suse.de>
Reviewed-by: default avatarliguang <lig.fnst@cn.fujitsu.com>
Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
parent 8819c10b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ typedef struct CPUTLBEntry {
                   sizeof(uintptr_t))];
} CPUTLBEntry;

extern int CPUTLBEntry_wrong_size[sizeof(CPUTLBEntry) == (1 << CPU_TLB_ENTRY_BITS) ? 1 : -1];
QEMU_BUILD_BUG_ON(sizeof(CPUTLBEntry) != (1 << CPU_TLB_ENTRY_BITS));

#define CPU_COMMON_TLB \
    /* The meaning of the MMU modes is defined in the target code. */   \