summaryrefslogtreecommitdiff
path: root/hw/mac_dbdma.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/mac_dbdma.c
parentadd85a76bb3b589ad38710ca24f5a10f1446d5e7 (diff)
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/mac_dbdma.c')
-rw-r--r--hw/mac_dbdma.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/mac_dbdma.c b/hw/mac_dbdma.c
index 8f94c35ac3..e2697d3a74 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;
}