diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2013-01-06 18:30:17 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2013-01-06 18:30:17 +0000 |
commit | 8e4a424b305e29dc0e454f52df3b35577f342975 (patch) | |
tree | 6f6ef35d2942115f40e1b84ac1d548af74697e23 /exec.c | |
parent | 9807caccd605d09a72495637959568d690e10175 (diff) | |
download | qemu-8e4a424b305e29dc0e454f52df3b35577f342975.zip |
Revert "virtio-pci: replace byte swap hack"
This reverts commit 9807caccd605d09a72495637959568d690e10175.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -2587,6 +2587,24 @@ int cpu_memory_rw_debug(CPUArchState *env, target_ulong addr, } #endif +#if !defined(CONFIG_USER_ONLY) + +/* + * A helper function for the _utterly broken_ virtio device model to find out if + * it's running on a big endian machine. Don't do this at home kids! + */ +bool virtio_is_big_endian(void); +bool virtio_is_big_endian(void) +{ +#if defined(TARGET_WORDS_BIGENDIAN) + return true; +#else + return false; +#endif +} + +#endif + #ifndef CONFIG_USER_ONLY bool cpu_physical_memory_is_io(hwaddr phys_addr) { |