aboutsummaryrefslogtreecommitdiff
path: root/system/memory-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/memory-internal.h')
-rw-r--r--system/memory-internal.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/system/memory-internal.h b/system/memory-internal.h
index 085e81a..46f758f 100644
--- a/system/memory-internal.h
+++ b/system/memory-internal.h
@@ -41,11 +41,8 @@ void mtree_print_dispatch(struct AddressSpaceDispatch *d,
/* returns true if end is big endian. */
static inline bool devend_big_endian(enum device_endian end)
{
- QEMU_BUILD_BUG_ON(DEVICE_HOST_ENDIAN != DEVICE_LITTLE_ENDIAN &&
- DEVICE_HOST_ENDIAN != DEVICE_BIG_ENDIAN);
-
if (end == DEVICE_NATIVE_ENDIAN) {
- return target_words_bigendian();
+ return target_big_endian();
}
return end == DEVICE_BIG_ENDIAN;
}