qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw/sparc64/niagara: Map the UART device unconditionally

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>

+2 -4
+2 -4
hw/sparc64/niagara.c
··· 152 152 exit(1); 153 153 } 154 154 } 155 - if (serial_hd(0)) { 156 - serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 115200, 157 - serial_hd(0), DEVICE_BIG_ENDIAN); 158 - } 155 + serial_mm_init(sysmem, NIAGARA_UART_BASE, 0, NULL, 156 + 115200, serial_hd(0), DEVICE_BIG_ENDIAN); 159 157 create_unimplemented_device("sun4v-iob", NIAGARA_IOBBASE, NIAGARA_IOBSIZE); 160 158 sun4v_rtc_init(NIAGARA_RTC_BASE); 161 159 }