hw/riscv/virt.c: simplify create_fdt()
'mem_size' and 'cmdline' aren't being used. Remove them. Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20230111170948.316276-3-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
5dfe23774d
commit
cdb785683a
@ -999,7 +999,7 @@ static void create_fdt_fw_cfg(RISCVVirtState *s, const MemMapEntry *memmap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void create_fdt(RISCVVirtState *s, const MemMapEntry *memmap,
|
static void create_fdt(RISCVVirtState *s, const MemMapEntry *memmap,
|
||||||
uint64_t mem_size, const char *cmdline, bool is_32_bit)
|
bool is_32_bit)
|
||||||
{
|
{
|
||||||
MachineState *mc = MACHINE(s);
|
MachineState *mc = MACHINE(s);
|
||||||
uint32_t phandle = 1, irq_mmio_phandle = 1, msi_pcie_phandle = 1;
|
uint32_t phandle = 1, irq_mmio_phandle = 1, msi_pcie_phandle = 1;
|
||||||
@ -1507,8 +1507,7 @@ static void virt_machine_init(MachineState *machine)
|
|||||||
virt_flash_map(s, system_memory);
|
virt_flash_map(s, system_memory);
|
||||||
|
|
||||||
/* create device tree */
|
/* create device tree */
|
||||||
create_fdt(s, memmap, machine->ram_size, machine->kernel_cmdline,
|
create_fdt(s, memmap, riscv_is_32bit(&s->soc[0]));
|
||||||
riscv_is_32bit(&s->soc[0]));
|
|
||||||
|
|
||||||
s->machine_done.notify = virt_machine_done;
|
s->machine_done.notify = virt_machine_done;
|
||||||
qemu_add_machine_init_done_notifier(&s->machine_done);
|
qemu_add_machine_init_done_notifier(&s->machine_done);
|
||||||
|
Loading…
Reference in New Issue
Block a user