]> Git Repo - qemu.git/commitdiff
mips_jazz: Pass MIPSCPU to main_cpu_reset()
authorAndreas Färber <[email protected]>
Sat, 5 May 2012 12:06:50 +0000 (14:06 +0200)
committerAndreas Färber <[email protected]>
Mon, 4 Jun 2012 21:00:43 +0000 (23:00 +0200)
Allows us to use cpu_reset() in place of cpu_state_reset().

Signed-off-by: Andreas Färber <[email protected]>
Acked-by: Hervé Poussineau <[email protected]>
hw/mips_jazz.c

index 24959e086df53160824cfc1d28d59d1fa7cdd637..bf1b799c4d7590d64ef30791eb8395723d367d89 100644 (file)
@@ -50,8 +50,9 @@ enum jazz_model_e
 
 static void main_cpu_reset(void *opaque)
 {
-    CPUMIPSState *env = opaque;
-    cpu_state_reset(env);
+    MIPSCPU *cpu = opaque;
+
+    cpu_reset(CPU(cpu));
 }
 
 static uint64_t rtc_read(void *opaque, target_phys_addr_t addr, unsigned size)
@@ -147,7 +148,7 @@ static void mips_jazz_init(MemoryRegion *address_space,
         exit(1);
     }
     env = &cpu->env;
-    qemu_register_reset(main_cpu_reset, env);
+    qemu_register_reset(main_cpu_reset, cpu);
 
     /* allocate RAM */
     memory_region_init_ram(ram, "mips_jazz.ram", ram_size);
This page took 0.029203 seconds and 4 git commands to generate.