From 9807caccd605d09a72495637959568d690e10175 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 14 Apr 2012 20:39:14 +0000 Subject: virtio-pci: replace byte swap hack Remove byte swaps by declaring the config space as native endian. Signed-off-by: Blue Swirl --- exec.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index a6923ad..140eb56 100644 --- a/exec.c +++ b/exec.c @@ -2587,24 +2587,6 @@ 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) { -- cgit v1.1