mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 11:01:00 +00:00
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. Backports commit 705ae59fecae341a4b1a45ce48b46de4b1bb3cf4 from qemu
This commit is contained in:
parent
4d1139f83f
commit
ad6873ec57
|
@ -22,7 +22,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
|
||||
|
|
Loading…
Reference in a new issue