[PATCH v3] hw/riscv/virt: Add a second UART for secure world

2023-04-25 Thread Yong Li
The virt machine can have two UARTs and the second UART can be used by the secure payload, firmware or OS residing in secure world. Will include the UART device to FDT in a seperated patch. Signed-off-by: Yong Li Reviewed-by: LIU Zhiwei Reviewed-by: Philippe Mathieu-Daudé --- hw/riscv/virt.c

[PATCH v2] hw/riscv/virt: Add a second UART for secure world

2023-04-24 Thread Yong Li
The virt machine can have two UARTs and the second UART can be used by the secure payload, firmware or OS residing in secure world. Signed-off-by: Yong Li --- hw/riscv/virt.c | 4 include/hw/riscv/virt.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/hw/riscv/virt.c b/hw

[PATCH] hw/riscv/virt: Add a second UART for secure world

2023-04-24 Thread Yong Li
The virt machine can have two UARTs and the second UART can be used when host secure-mode support is enabled. Signed-off-by: Yong Li --- hw/riscv/virt.c | 4 include/hw/riscv/virt.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index

[PATCH] hw/riscv/virt: Add a second UART for secure world

2023-04-24 Thread Yong Li
The virt machine can have two UARTs and the second UART can be used when host secure-mode support is enabled. Signed-off-by: Yong Li --- hw/riscv/virt.c | 4 include/hw/riscv/virt.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index

[PATCH] hw/riscv/virt: Add a second UART for secure world

2023-04-23 Thread Yong Li
The virt machine can have two UARTs and the second UART can be used when host secure-mode support is enabled. Signed-off-by: Yong Li Cc: "Zhiwei Liu" --- hw/riscv/virt.c | 4 include/hw/riscv/virt.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/hw/riscv/virt.c

[PATCH] hw/riscv/virt: Fix the boot logic if pflash0 is specified

2023-04-23 Thread Yong Li
om pflash0 Signed-off-by: Yong Li Cc: "Zhiwei Liu" --- hw/riscv/virt.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 4e3efbee16..b38b41e685 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -1296,10 +12