diff options
| author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2023-01-11 14:09:43 -0300 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2023-01-20 10:14:14 +1000 |
| commit | fb60b488cf5027c8134f1ce0c1df9b6bdd3b9276 (patch) | |
| tree | 659137c6d4316460f5780dc0b4e5d907d686714c /hw/riscv/numa.c | |
| parent | 914c97f968cc70be5275fd230d38f99882896032 (diff) | |
| download | focaccia-qemu-fb60b488cf5027c8134f1ce0c1df9b6bdd3b9276.tar.gz focaccia-qemu-fb60b488cf5027c8134f1ce0c1df9b6bdd3b9276.zip | |
hw/riscv: use MachineState::fdt in riscv_socket_fdt_write_id()
There's no need to use a MachineState pointer and a fdt pointer now that all RISC-V machines are using the FDT from the MachineState. 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-6-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/riscv/numa.c')
| -rw-r--r-- | hw/riscv/numa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/riscv/numa.c b/hw/riscv/numa.c index 7fe92d402f..f4343f5cde 100644 --- a/hw/riscv/numa.c +++ b/hw/riscv/numa.c @@ -156,11 +156,11 @@ uint64_t riscv_socket_mem_size(const MachineState *ms, int socket_id) ms->numa_state->nodes[socket_id].node_mem : 0; } -void riscv_socket_fdt_write_id(const MachineState *ms, void *fdt, - const char *node_name, int socket_id) +void riscv_socket_fdt_write_id(const MachineState *ms, const char *node_name, + int socket_id) { if (numa_enabled(ms)) { - qemu_fdt_setprop_cell(fdt, node_name, "numa-node-id", socket_id); + qemu_fdt_setprop_cell(ms->fdt, node_name, "numa-node-id", socket_id); } } |