diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:11 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:11 +0000 |
commit | 2d48377a8531de63ec1d0c4b9b1959dc4b78356c (patch) | |
tree | 5d953e12d529ea65102e1600dbcb14127261ea28 /hw/mips_malta.c | |
parent | d3ffc7a6e7372e1b88a4bf1c588cbe8ed46b2ca4 (diff) |
Compile serial only once
Push TARGET_WORDS_BIGENDIAN dependency to board level.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/mips_malta.c')
-rw-r--r-- | hw/mips_malta.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/mips_malta.c b/hw/mips_malta.c index 91498c262c..96e3bc0324 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -441,7 +441,11 @@ static MaltaFPGAState *malta_fpga_init(target_phys_addr_t base, qemu_irq uart_ir s->display = qemu_chr_open("fpga", "vc:320x200", malta_fpga_led_init); - s->uart = serial_mm_init(base + 0x900, 3, uart_irq, 230400, uart_chr, 1); +#ifdef TARGET_WORDS_BIGENDIAN + s->uart = serial_mm_init(base + 0x900, 3, uart_irq, 230400, uart_chr, 1, 1); +#else + s->uart = serial_mm_init(base + 0x900, 3, uart_irq, 230400, uart_chr, 1, 0); +#endif malta_fpga_reset(s); qemu_register_reset(malta_fpga_reset, s); |