diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-29 19:24:04 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-29 19:24:04 +0000 |
commit | add85a76bb3b589ad38710ca24f5a10f1446d5e7 (patch) | |
tree | ad50b0d808c75263b6077b6f5bf7ed0d0bdc46fa /hw/prep_pci.c | |
parent | 29e922b61fb3d93836825ca9731bb2cadbb6ed72 (diff) |
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/prep_pci.c')
-rw-r--r-- | hw/prep_pci.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/hw/prep_pci.c b/hw/prep_pci.c index 19f028c7b7..144fde03a7 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; } |