aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-29 19:24:04 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-29 19:24:04 +0000
commitadd85a76bb3b589ad38710ca24f5a10f1446d5e7 (patch)
treead50b0d808c75263b6077b6f5bf7ed0d0bdc46fa /hw
parent29e922b61fb3d93836825ca9731bb2cadbb6ed72 (diff)
downloadqemu-add85a76bb3b589ad38710ca24f5a10f1446d5e7.zip
qemu-add85a76bb3b589ad38710ca24f5a10f1446d5e7.tar.gz
qemu-add85a76bb3b589ad38710ca24f5a10f1446d5e7.tar.bz2
Compile prep_pci 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/prep_pci.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/hw/prep_pci.c b/hw/prep_pci.c
index 19f028c..144fde0 100644
--- a/hw/prep_pci.c
+++ b/hw/prep_pci.c
@@ -49,18 +49,14 @@ static void PPC_PCIIO_writeb (void *opaque, target_phys_addr_t addr, uint32_t va
static void PPC_PCIIO_writew (void *opaque, target_phys_addr_t addr, uint32_t val)
{
PREPPCIState *s = opaque;
-#ifdef TARGET_WORDS_BIGENDIAN
val = bswap16(val);
-#endif
pci_data_write(s->bus, PPC_PCIIO_config(addr), val, 2);
}
static void PPC_PCIIO_writel (void *opaque, target_phys_addr_t addr, uint32_t val)
{
PREPPCIState *s = opaque;
-#ifdef TARGET_WORDS_BIGENDIAN
val = bswap32(val);
-#endif
pci_data_write(s->bus, PPC_PCIIO_config(addr), val, 4);
}
@@ -77,9 +73,7 @@ static uint32_t PPC_PCIIO_readw (void *opaque, target_phys_addr_t addr)
PREPPCIState *s = opaque;
uint32_t val;
val = pci_data_read(s->bus, PPC_PCIIO_config(addr), 2);
-#ifdef TARGET_WORDS_BIGENDIAN
val = bswap16(val);
-#endif
return val;
}
@@ -88,9 +82,7 @@ static uint32_t PPC_PCIIO_readl (void *opaque, target_phys_addr_t addr)
PREPPCIState *s = opaque;
uint32_t val;
val = pci_data_read(s->bus, PPC_PCIIO_config(addr), 4);
-#ifdef TARGET_WORDS_BIGENDIAN
val = bswap32(val);
-#endif
return val;
}