summaryrefslogtreecommitdiff
path: root/hw/openrisc_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/openrisc_sim.c')
-rw-r--r--hw/openrisc_sim.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/hw/openrisc_sim.c b/hw/openrisc_sim.c
index 55e97f0959..e96a94492b 100644
--- a/hw/openrisc_sim.c
+++ b/hw/openrisc_sim.c
@@ -90,13 +90,11 @@ static void cpu_openrisc_load_kernel(ram_addr_t ram_size,
cpu->env.pc = entry;
}
-static void openrisc_sim_init(ram_addr_t ram_size,
- const char *boot_device,
- const char *kernel_filename,
- const char *kernel_cmdline,
- const char *initrd_filename,
- const char *cpu_model)
+static void openrisc_sim_init(QEMUMachineInitArgs *args)
{
+ ram_addr_t ram_size = args->ram_size;
+ const char *cpu_model = args->cpu_model;
+ const char *kernel_filename = args->kernel_filename;
OpenRISCCPU *cpu = NULL;
MemoryRegion *ram;
int n;