diff options
author | Richard Henderson <rth@twiddle.net> | 2011-08-11 16:07:14 -0700 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-10-02 16:14:01 +0200 |
commit | fb50cfe44dbff7be1489c5ecf5428aabd401f2e0 (patch) | |
tree | 737c44fe223d0a98a30ed36781413fb4715b7e42 /hw/virtex_ml507.c | |
parent | 8e8ffc44e8d0a4a41e4b0bee8b1c2a3e1a11cfc4 (diff) |
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/virtex_ml507.c')
-rw-r--r-- | hw/virtex_ml507.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/virtex_ml507.c b/hw/virtex_ml507.c index 7459b0bbe9..a4721e38be 100644 --- a/hw/virtex_ml507.c +++ b/hw/virtex_ml507.c @@ -226,7 +226,8 @@ static void virtex_init(ram_addr_t ram_size, irq[i] = qdev_get_gpio_in(dev, i); } - serial_mm_init(0x83e01003ULL, 2, irq[9], 115200, serial_hds[0], 1, 0); + serial_mm_init(0x83e01003ULL, 2, irq[9], 115200, serial_hds[0], + 1, DEVICE_LITTLE_ENDIAN); /* 2 timers at irq 2 @ 62 Mhz. */ xilinx_timer_create(0x83c00000, irq[3], 2, 62 * 1000000); |