diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2017-01-27 18:17:25 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-02-01 03:37:18 +0200 |
commit | 705ae59fecae341a4b1a45ce48b46de4b1bb3cf4 (patch) | |
tree | b44f1488701c9bd8e9a833adbe3991c959524179 | |
parent | dc0ae767700c156894e36fab89a745a2dc4173de (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>
-rw-r--r-- | target/arm/kvm-consts.h | 4 |
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 |