On 10/2/22 07:30, Stafford Horne wrote:
This will allow us to attach machine state attributes like
the device tree fdt.

Signed-off-by: Stafford Horne <sho...@gmail.com>
---
  hw/openrisc/openrisc_sim.c | 31 +++++++++++++++++++++++++++++--
  1 file changed, 29 insertions(+), 2 deletions(-)

@@ -141,6 +153,7 @@ static void openrisc_sim_init(MachineState *machine)
      ram_addr_t ram_size = machine->ram_size;
      const char *kernel_filename = machine->kernel_filename;
      OpenRISCCPU *cpus[2] = {};
+    Or1ksimState *s = OR1KSIM_MACHINE(machine);

This change belong to patch #3.

Otherwise:
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>

      MemoryRegion *ram;
      qemu_irq serial_irq;
      int n;
@@ -183,8 +196,10 @@ static void openrisc_sim_init(MachineState *machine)
      openrisc_load_kernel(ram_size, kernel_filename);
  }

Reply via email to