aboutsummaryrefslogtreecommitdiff
path: root/target/arm/kvm-consts.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2017-01-27 18:17:25 +0200
committerMichael S. Tsirkin <mst@redhat.com>2017-02-01 03:37:18 +0200
commit705ae59fecae341a4b1a45ce48b46de4b1bb3cf4 (patch)
treeb44f1488701c9bd8e9a833adbe3991c959524179 /target/arm/kvm-consts.h
parentdc0ae767700c156894e36fab89a745a2dc4173de (diff)
arm: better stub version for MISMATCH_CHECK
stub version of MISMATCH_CHECK is empty so it's easy to misuse for people not building kvm on arm. Use QEMU_BUILD_BUG_ON similar to the non-stub version to make it easier to catch bugs. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/kvm-consts.h')
-rw-r--r--target/arm/kvm-consts.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/arm/kvm-consts.h b/target/arm/kvm-consts.h
index a2c9518592..06b6c920b1 100644
--- a/target/arm/kvm-consts.h
+++ b/target/arm/kvm-consts.h
@@ -21,7 +21,9 @@
#define MISMATCH_CHECK(X, Y) QEMU_BUILD_BUG_ON(X != Y)
#else
-#define MISMATCH_CHECK(X, Y)
+
+#define MISMATCH_CHECK(X, Y) QEMU_BUILD_BUG_ON(0)
+
#endif
#define CP_REG_SIZE_SHIFT 52