summaryrefslogtreecommitdiff
path: root/hw/unin_pci.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-30 17:36:23 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-30 17:36:23 +0000
commit2b5eb3712350d65d3eacb3ae468aae5e846b27b3 (patch)
tree1f2469c4689462cf69c441166b74d634e81e4aac /hw/unin_pci.c
parentadd85a76bb3b589ad38710ca24f5a10f1446d5e7 (diff)
downloadqemu-2b5eb3712350d65d3eacb3ae468aae5e846b27b3.tar.gz
Compile most PPC devices only once
Make byte swapping unconditional since PPC is big endian. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/unin_pci.c')
-rw-r--r--hw/unin_pci.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/unin_pci.c b/hw/unin_pci.c
index a4866f475b..f0a773d6ad 100644
--- a/hw/unin_pci.c
+++ b/hw/unin_pci.c
@@ -121,9 +121,7 @@ static void unin_data_write(ReadWriteHandler *handler,
pcibus_t addr, uint32_t val, int len)
{
UNINState *s = container_of(handler, UNINState, data_handler);
-#ifdef TARGET_WORDS_BIGENDIAN
val = qemu_bswap_len(val, len);
-#endif
UNIN_DPRINTF("write addr %" FMT_PCIBUS " len %d val %x\n", addr, len, val);
pci_data_write(s->host_state.bus,
unin_get_config_reg(s->host_state.config_reg, addr),
@@ -140,9 +138,7 @@ static uint32_t unin_data_read(ReadWriteHandler *handler,
unin_get_config_reg(s->host_state.config_reg, addr),
len);
UNIN_DPRINTF("read addr %" FMT_PCIBUS " len %d val %x\n", addr, len, val);
-#ifdef TARGET_WORDS_BIGENDIAN
val = qemu_bswap_len(val, len);
-#endif
return val;
}