aboutsummaryrefslogtreecommitdiff
path: root/hw/gt64xxx.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/gt64xxx.c
parent7161e5710b8b371d88b8c6b9361d266d8bdd70ce (diff)
downloadqemu-84108e128e0245dc1ff9c0aa064e9cfe2316b32d.zip
qemu-84108e128e0245dc1ff9c0aa064e9cfe2316b32d.tar.gz
qemu-84108e128e0245dc1ff9c0aa064e9cfe2316b32d.tar.bz2
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/gt64xxx.c')
-rw-r--r--hw/gt64xxx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c
index f47af43..55971b9 100644
--- a/hw/gt64xxx.c
+++ b/hw/gt64xxx.c
@@ -297,7 +297,11 @@ static void gt64120_pci_mapping(GT64120State *s)
s->PCI0IO_start = s->regs[GT_PCI0IOLD] << 21;
s->PCI0IO_length = ((s->regs[GT_PCI0IOHD] + 1) - (s->regs[GT_PCI0IOLD] & 0x7f)) << 21;
isa_mem_base = s->PCI0IO_start;
- isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length);
+#ifdef TARGET_WORDS_BIGENDIAN
+ isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length, 1);
+#else
+ isa_mmio_init(s->PCI0IO_start, s->PCI0IO_length, 0);
+#endif
}
}