On 15/6/26 22:37, Daniel Henrique Barboza wrote:
There's FDT logic gated around 'numa_enabled()' in virt.c and spike.c.
We want to move the FDT code to a common helper without having to call
hw/riscv/numa.c functions from it, but at the same time being aware of
the FDT changes if numa is enabled.
To do that the boards will inform the FDT helpers if we have
numa_enabled in the env or not. And for the boards to be able to do
that we need the static 'numa_enabled' function to be public.
Signed-off-by: Daniel Henrique Barboza <[email protected]>
---
hw/riscv/numa.c | 20 ++++++++++----------
include/hw/riscv/numa.h | 8 ++++++++
2 files changed, 18 insertions(+), 10 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>