]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/riscv/virt.c: add aplic nodename helper
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Fri, 31 May 2024 20:27:53 +0000 (17:27 -0300)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 26 Jun 2024 12:34:03 +0000 (22:34 +1000)
commit02dd57b3f9f0951d5de087043d29aac64c92a6b4
tree1ab1f267a0aa351affde79af8185d3e567eec262
parent190e0ae6290d17780c075ca38b9ecb9895dee419
hw/riscv/virt.c: add aplic nodename helper

We'll change the aplic DT nodename in the next patch and the name is
hardcoded in 2 different functions. Create a helper to change a single
place later.

While we're at it, in create_fdt_socket_aplic(), move 'aplic_name'
inside the conditional to avoid allocating a string that won't be used
when socket == NULL.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240531202759.911601-3-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/virt.c