]> git.proxmox.com Git - qemu.git/blobdiff - target-cris/helper.c
cpu: Change qemu_init_vcpu() argument to CPUState
[qemu.git] / target-cris / helper.c
index 466cc2f9d53946ff480b512eb71757c2a10e171d..aba7537265b89dafc6b12943e7e1ac367d1c898f 100644 (file)
@@ -53,9 +53,11 @@ void crisv10_cpu_do_interrupt(CPUState *cs)
 int cpu_cris_handle_mmu_fault(CPUCRISState * env, target_ulong address, int rw,
                               int mmu_idx)
 {
+    CRISCPU *cpu = cris_env_get_cpu(env);
+
     env->exception_index = 0xaa;
     env->pregs[PR_EDA] = address;
-    cpu_dump_state(env, stderr, fprintf, 0);
+    cpu_dump_state(CPU(cpu), stderr, fprintf, 0);
     return 1;
 }