Re: [PATCH v2 2/8] hw/riscv/virt.c: add aplic nodename helper

2024-06-04 Thread Alistair Francis
On Sat, Jun 1, 2024 at 6:31 AM Daniel Henrique Barboza wrote: > > 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' > in

[PATCH v2 2/8] hw/riscv/virt.c: add aplic nodename helper

2024-05-31 Thread Daniel Henrique Barboza
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 so