From 84108e128e0245dc1ff9c0aa064e9cfe2316b32d Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 21 Mar 2010 19:47:09 +0000 Subject: Compile isa_mmio only once Push TARGET_WORDS_BIGENDIAN dependency to board level. Signed-off-by: Blue Swirl --- hw/mips_r4k.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hw/mips_r4k.c') diff --git a/hw/mips_r4k.c b/hw/mips_r4k.c index 3edc8d5..c29615c 100644 --- a/hw/mips_r4k.c +++ b/hw/mips_r4k.c @@ -261,7 +261,11 @@ void mips_r4k_init (ram_addr_t ram_size, rtc_state = rtc_init(2000); /* Register 64 KB of ISA IO space at 0x14000000 */ - isa_mmio_init(0x14000000, 0x00010000); +#ifdef TARGET_WORDS_BIGENDIAN + isa_mmio_init(0x14000000, 0x00010000, 1); +#else + isa_mmio_init(0x14000000, 0x00010000, 0); +#endif isa_mem_base = 0x10000000; pit = pit_init(0x40, i8259[0]); -- cgit v1.1