mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
8e8ffc44e8
commit
fb50cfe44d
14 changed files with 38 additions and 84 deletions
|
@ -1440,15 +1440,9 @@ void sm501_init(uint32_t base, uint32_t local_mem_bytes, qemu_irq irq,
|
|||
|
||||
/* bridge to serial emulation module */
|
||||
if (chr) {
|
||||
#ifdef TARGET_WORDS_BIGENDIAN
|
||||
serial_mm_init(base + MMIO_BASE_OFFSET + SM501_UART0, 2,
|
||||
NULL, /* TODO : chain irq to IRL */
|
||||
115200, chr, 1, 1);
|
||||
#else
|
||||
serial_mm_init(base + MMIO_BASE_OFFSET + SM501_UART0, 2,
|
||||
NULL, /* TODO : chain irq to IRL */
|
||||
115200, chr, 1, 0);
|
||||
#endif
|
||||
115200, chr, 1, DEVICE_NATIVE_ENDIAN);
|
||||
}
|
||||
|
||||
/* create qemu graphic console */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue