[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 03/15] hw/riscv/sifive_u: use 'fdt' from MachineState
From: |
Bin Meng |
Subject: |
Re: [PATCH 03/15] hw/riscv/sifive_u: use 'fdt' from MachineState |
Date: |
Fri, 23 Dec 2022 17:10:46 +0800 |
On Thu, Dec 22, 2022 at 2:29 AM Daniel Henrique Barboza
<dbarboza@ventanamicro.com> wrote:
>
> The MachineState object provides a 'fdt' pointer that is already being
> used by other RISC-V machines, and it's also used by the 'dumpdtb' QMP
> command.
>
> Remove the 'fdt' pointer from SiFiveUState and use MachineState::fdt
> instead.
>
> Cc: Palmer Dabbelt <palmer@dabbelt.com>
> Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
> ---
> hw/riscv/sifive_u.c | 15 ++++++---------
> include/hw/riscv/sifive_u.h | 3 ---
> 2 files changed, 6 insertions(+), 12 deletions(-)
>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
- Re: [PATCH 01/15] tests/avocado: add RISC-V opensbi boot test, (continued)
- [PATCH 02/15] hw/riscv/spike: use 'fdt' from MachineState, Daniel Henrique Barboza, 2022/12/21
- [PATCH 03/15] hw/riscv/sifive_u: use 'fdt' from MachineState, Daniel Henrique Barboza, 2022/12/21
- [PATCH 05/15] hw/riscv/boot.c: introduce riscv_default_firmware_name(), Daniel Henrique Barboza, 2022/12/21
- [PATCH 04/15] hw/riscv/boot.c: make riscv_find_firmware() static, Daniel Henrique Barboza, 2022/12/21
- [PATCH 06/15] hw/riscv/spike.c: load initrd right after riscv_load_kernel(), Daniel Henrique Barboza, 2022/12/21