Re: [PATCH 07/10] hw/arm/realview: Move 'mpcore_periphbase' to RealviewMachineClass

2023-05-24 Thread Richard Henderson
On 5/24/23 07:59, Philippe Mathieu-Daudé wrote: -int is_mpcore = 0; +bool is_mpcore = rmc->mpcore_periphbase != 0; bool is_pb = rmc->is_pb; uint32_t proc_id = 0; uint32_t sys_id; ram_addr_t low_ram_size; ram_addr_t ram_size = machine->ram_size; -hwaddr pe

[PATCH 07/10] hw/arm/realview: Move 'mpcore_periphbase' to RealviewMachineClass

2023-05-24 Thread Philippe Mathieu-Daudé
Instead of having each machine instance resolve whether it is MPCORE based and its peripheral base address, set it once in their class_init() handler. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/realview.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --g