Re: [PATCH v4 31/33] hw/nios2: Introduce Nios2MachineState

2022-03-08 Thread Richard Henderson
On 3/7/22 22:39, Mark Cave-Ayland wrote:   static void nios2_10m50_ghrd_init(MachineState *machine)   { +    Nios2MachineState *nms = NIOS2_MACHINE(machine);   Nios2CPU *cpu;   DeviceState *dev;   MemoryRegion *address_space_mem = get_system_memory(); @@ -101,15 +109,29 @@ static void

Re: [PATCH v4 31/33] hw/nios2: Introduce Nios2MachineState

2022-03-08 Thread Mark Cave-Ayland
On 08/03/2022 07:20, Richard Henderson wrote: We want to move data from the heap into Nios2MachineState, which is not possible with DEFINE_MACHINE. Signed-off-by: Richard Henderson --- hw/nios2/10m50_devboard.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions

[PATCH v4 31/33] hw/nios2: Introduce Nios2MachineState

2022-03-07 Thread Richard Henderson
We want to move data from the heap into Nios2MachineState, which is not possible with DEFINE_MACHINE. Signed-off-by: Richard Henderson --- hw/nios2/10m50_devboard.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/hw/nios2/10m50_devboard.c b/hw/ni