aboutsummaryrefslogtreecommitdiff
path: root/hw/mips_malta.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-08-11 16:07:14 -0700
committerAvi Kivity <avi@redhat.com>2011-10-02 16:14:01 +0200
commitfb50cfe44dbff7be1489c5ecf5428aabd401f2e0 (patch)
tree737c44fe223d0a98a30ed36781413fb4715b7e42 /hw/mips_malta.c
parent8e8ffc44e8d0a4a41e4b0bee8b1c2a3e1a11cfc4 (diff)
downloadqemu-fb50cfe44dbff7be1489c5ecf5428aabd401f2e0.zip
qemu-fb50cfe44dbff7be1489c5ecf5428aabd401f2e0.tar.gz
qemu-fb50cfe44dbff7be1489c5ecf5428aabd401f2e0.tar.bz2
serial: Use enum device_endian in serial_mm_init parameter
The use of DEVICE_NATIVE_ENDIAN cleans up lots of ifdefs in many of the callers. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/mips_malta.c')
-rw-r--r--hw/mips_malta.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/mips_malta.c b/hw/mips_malta.c
index 1ec1228..0b16914 100644
--- a/hw/mips_malta.c
+++ b/hw/mips_malta.c
@@ -446,11 +446,8 @@ static MaltaFPGAState *malta_fpga_init(MemoryRegion *address_space,
s->display = qemu_chr_new("fpga", "vc:320x200", malta_fpga_led_init);
-#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
+ s->uart = serial_mm_init(base + 0x900, 3, uart_irq, 230400, uart_chr,
+ 1, DEVICE_NATIVE_ENDIAN);
malta_fpga_reset(s);
qemu_register_reset(malta_fpga_reset, s);