Commit 705ae59f authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

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: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent dc0ae767
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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