aboutsummaryrefslogtreecommitdiff
path: root/hw
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
parentadd85a76bb3b589ad38710ca24f5a10f1446d5e7 (diff)
downloadqemu-2b5eb3712350d65d3eacb3ae468aae5e846b27b3.zip
qemu-2b5eb3712350d65d3eacb3ae468aae5e846b27b3.tar.gz
qemu-2b5eb3712350d65d3eacb3ae468aae5e846b27b3.tar.bz2
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')
-rw-r--r--hw/heathrow_pic.c4
-rw-r--r--hw/mac_dbdma.c4
-rw-r--r--hw/ppce500_pci.c2
-rw-r--r--hw/unin_pci.c4
4 files changed, 0 insertions, 14 deletions
diff --git a/hw/heathrow_pic.c b/hw/heathrow_pic.c
index f6174b1..5e27021 100644
--- a/hw/heathrow_pic.c
+++ b/hw/heathrow_pic.c
@@ -68,9 +68,7 @@ static void pic_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
HeathrowPIC *pic;
unsigned int n;
-#ifdef TARGET_WORDS_BIGENDIAN
value = bswap32(value);
-#endif
n = ((addr & 0xfff) - 0x10) >> 4;
PIC_DPRINTF("writel: " TARGET_FMT_plx " %u: %08x\n", addr, n, value);
if (n >= 2)
@@ -120,9 +118,7 @@ static uint32_t pic_readl (void *opaque, target_phys_addr_t addr)
}
}
PIC_DPRINTF("readl: " TARGET_FMT_plx " %u: %08x\n", addr, n, value);
-#ifdef TARGET_WORDS_BIGENDIAN
value = bswap32(value);
-#endif
return value;
}
diff --git a/hw/mac_dbdma.c b/hw/mac_dbdma.c
index 8f94c35..e2697d3 100644
--- a/hw/mac_dbdma.c
+++ b/hw/mac_dbdma.c
@@ -707,9 +707,7 @@ static void dbdma_writel (void *opaque,
DBDMA_DPRINTF("channel 0x%x reg 0x%x\n",
(uint32_t)addr >> DBDMA_CHANNEL_SHIFT, reg);
-#ifdef TARGET_WORDS_BIGENDIAN
value = bswap32(value);
-#endif
/* cmdptr cannot be modified if channel is RUN or ACTIVE */
@@ -790,9 +788,7 @@ static uint32_t dbdma_readl (void *opaque, target_phys_addr_t addr)
break;
}
-#ifdef TARGET_WORDS_BIGENDIAN
value = bswap32(value);
-#endif
return value;
}
diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c
index 683e657..336d284 100644
--- a/hw/ppce500_pci.c
+++ b/hw/ppce500_pci.c
@@ -15,12 +15,10 @@
*/
#include "hw.h"
-#include "ppc.h"
#include "ppce500.h"
#include "pci.h"
#include "pci_host.h"
#include "bswap.h"
-#include "qemu-log.h"
#ifdef DEBUG_PCI
#define pci_debug(fmt, ...) fprintf(stderr, fmt, ## __VA_ARGS__)
diff --git a/hw/unin_pci.c b/hw/unin_pci.c
index a4866f4..f0a773d 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;
}