diff options
author | Richard Henderson <rth@twiddle.net> | 2013-06-04 09:51:59 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2013-06-05 05:54:00 -0700 |
commit | e85ef5381a512d8f781b862e8b5f9d4cbf0ba494 (patch) | |
tree | 7db59d6fd8755214072b5000e4d9fb5afadd6a8a /include | |
parent | 8819c10b5d55d537d59a0ffd5d623f348fc36c47 (diff) | |
download | qemu-e85ef5381a512d8f781b862e8b5f9d4cbf0ba494.zip |
tcg: Use QEMU_BUILD_BUG_ON for CPU_TLB_ENTRY_BITS
Rather than a hand-coded version of the same thing.
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: liguang <lig.fnst@cn.fujitsu.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/exec/cpu-defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h index d8c64e9278..2e5a9bab3c 100644 --- a/include/exec/cpu-defs.h +++ b/include/exec/cpu-defs.h @@ -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. */ \ |