aboutsummaryrefslogtreecommitdiff
path: root/hw/mcf_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/mcf_uart.c')
-rw-r--r--hw/mcf_uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/mcf_uart.c b/hw/mcf_uart.c
index d16bac7337..db57096af2 100644
--- a/hw/mcf_uart.c
+++ b/hw/mcf_uart.c
@@ -304,6 +304,7 @@ void mcf_uart_mm_init(target_phys_addr_t base, qemu_irq irq,
s = mcf_uart_init(irq, chr);
iomemtype = cpu_register_io_memory(mcf_uart_readfn,
- mcf_uart_writefn, s);
+ mcf_uart_writefn, s,
+ DEVICE_NATIVE_ENDIAN);
cpu_register_physical_memory(base, 0x40, iomemtype);
}