summaryrefslogtreecommitdiff
path: root/hw/mips_r4k.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/mips_r4k.c')
-rw-r--r--hw/mips_r4k.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/mips_r4k.c b/hw/mips_r4k.c
index 3edc8d5921..c29615c6bf 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]);