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_mipssim.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hw/mips_mipssim.c') diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c index 9a6f50c..98d1a01 100644 --- a/hw/mips_mipssim.c +++ b/hw/mips_mipssim.c @@ -182,7 +182,11 @@ mips_mipssim_init (ram_addr_t ram_size, cpu_mips_clock_init(env); /* Register 64 KB of ISA IO space at 0x1fd00000. */ - isa_mmio_init(0x1fd00000, 0x00010000); +#ifdef TARGET_WORDS_BIGENDIAN + isa_mmio_init(0x1fd00000, 0x00010000, 1); +#else + isa_mmio_init(0x1fd00000, 0x00010000, 0); +#endif /* A single 16450 sits at offset 0x3f8. It is attached to MIPS CPU INT2, which is interrupt 4. */ -- cgit v1.1