summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2012-04-14 20:39:14 +0000
committerBlue Swirl <blauwirbel@gmail.com>2013-01-06 08:24:26 +0000
commit9807caccd605d09a72495637959568d690e10175 (patch)
treeb4eae6f1aeed782f3523b98040aa257689c452a5 /exec.c
parent1d728c394652d40a9065668606d62f28bc544949 (diff)
downloadqemu-9807caccd605d09a72495637959568d690e10175.tar.gz
virtio-pci: replace byte swap hack
Remove byte swaps by declaring the config space as native endian. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/exec.c b/exec.c
index a6923addd4..140eb5668f 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)
{