projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acd2a00
)
hw/sparc64/niagara: Map the UART device unconditionally
author
Philippe Mathieu-Daudé
<f4bug@amsat.org>
Sun, 1 Dec 2019 20:35:24 +0000
(21:35 +0100)
committer
Philippe Mathieu-Daudé
<f4bug@amsat.org>
Tue, 9 Jun 2020 07:21:10 +0000
(09:21 +0200)
The UART is present on the machine regardless there is a
character device connected to it. Map it unconditionally.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
Message-Id: <
20200608172144
.20461-4-f4bug@amsat.org>
hw/sparc64/niagara.c
patch
|
blob
|
history
diff --git
a/hw/sparc64/niagara.c
b/hw/sparc64/niagara.c
index ab5ef8c5b34311617d15dc34a00fdce83c2f4c9a..148a26890e3556fb2832ed928a3383fba6d3ef86 100644
(file)
--- a/
hw/sparc64/niagara.c
+++ b/
hw/sparc64/niagara.c
@@
-152,10
+152,8
@@
static void niagara_init(MachineState *machine)
exit(1);
}
}
- if (serial_hd(0)) {
- serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 115200,
- serial_hd(0), DEVICE_BIG_ENDIAN);
- }
+ serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL,
+ 115200, serial_hd(0), DEVICE_BIG_ENDIAN);
create_unimplemented_device("sun4v-iob", NIAGARA_IOBBASE, NIAGARA_IOBSIZE);
sun4v_rtc_init(NIAGARA_RTC_BASE);
}