mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
914c97f968
commit
fb60b488cf
4 changed files with 18 additions and 18 deletions
|
@ -90,10 +90,10 @@ bool riscv_socket_check_hartids(const MachineState *ms, int socket_id);
|
|||
* @ms: pointer to machine state
|
||||
* @socket_id: socket index
|
||||
*
|
||||
* Write NUMA node-id FDT property for given FDT node
|
||||
* Write NUMA node-id FDT property in MachineState->fdt
|
||||
*/
|
||||
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);
|
||||
|
||||
/**
|
||||
* riscv_socket_fdt_write_distance_matrix:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue