aboutsummaryrefslogtreecommitdiff
path: root/hw/versatile_pci.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-21 19:47:09 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-21 19:47:09 +0000
commit84108e128e0245dc1ff9c0aa064e9cfe2316b32d (patch)
tree7676ed17e01f89aaf2896e4514198ccd5a3b71ef /hw/versatile_pci.c
parent7161e5710b8b371d88b8c6b9361d266d8bdd70ce (diff)
Compile isa_mmio only once
Push TARGET_WORDS_BIGENDIAN dependency to board level. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/versatile_pci.c')
-rw-r--r--hw/versatile_pci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/versatile_pci.c b/hw/versatile_pci.c
index 7048fb84d0..199bc1936e 100644
--- a/hw/versatile_pci.c
+++ b/hw/versatile_pci.c
@@ -108,7 +108,11 @@ static void pci_vpb_map(SysBusDevice *dev, target_phys_addr_t base)
if (s->realview) {
/* IO memory area. */
- isa_mmio_init(base + 0x03000000, 0x00100000);
+#ifdef TARGET_WORDS_BIGENDIAN
+ isa_mmio_init(base + 0x03000000, 0x00100000, 1);
+#else
+ isa_mmio_init(base + 0x03000000, 0x00100000, 0);
+#endif
}
}