diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2023-09-21 11:21:42 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-09-21 11:23:03 +0100 |
commit | 66bff4241bf881481ddf077e10a79e59db0ee9a2 (patch) | |
tree | b653e42996c2452f4a37db6decee8920f9c4207d | |
parent | f272a95646635a08a8bacdc64ca968282e0f20de (diff) |
virt: Reverse order of UART dtb nodesuart-edk-investigation
With this commit, the DTB nodes appear in the order
pl011@9040000 first. This corresponds to the uart[01]-rev.txt
logs.
Without this commit, the DTB nodes appear with
pl011@9000000 first, corresponding to uart[01].txt.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/arm/virt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 63dbfb937a..ecf627ddb1 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -2308,6 +2308,7 @@ static void machvirt_init(MachineState *machine) * we create it second (and so it appears first in the DTB), because * that's what QEMU has always done. */ + create_uart(vms, VIRT_UART0, sysmem, serial_hd(0)); if (!vms->secure) { Chardev *serial1 = serial_hd(1); @@ -2316,7 +2317,6 @@ static void machvirt_init(MachineState *machine) create_uart(vms, VIRT_UART1, sysmem, serial1); } } - create_uart(vms, VIRT_UART0, sysmem, serial_hd(0)); if (vms->secure) { vms->second_uart_present = true; create_uart(vms, VIRT_UART1, secure_sysmem, serial_hd(1)); |