]> Git Repo - qemu.git/blobdiff - target-cris/translate.c
target-ppc: fix previous commit
[qemu.git] / target-cris / translate.c
index 2ff6fe2d325cf2f1604dfa7f0c1c09b33172a409..288262d7b5c8c6479e5d73b66c508c450bcd9459 100644 (file)
@@ -36,6 +36,7 @@
 #include "disas.h"
 #include "tcg-op.h"
 #include "helper.h"
+#include "mmu.h"
 #include "crisv32-decode.h"
 #include "qemu-common.h"
 
@@ -3458,6 +3459,11 @@ CPUCRISState *cpu_cris_init (const char *cpu_model)
 
 void cpu_reset (CPUCRISState *env)
 {
+       if (qemu_loglevel_mask(CPU_LOG_RESET)) {
+               qemu_log("CPU Reset (CPU %d)\n", env->cpu_index);
+               log_cpu_state(env, 0);
+       }
+
        memset(env, 0, offsetof(CPUCRISState, breakpoints));
        tlb_flush(env, 1);
 
@@ -3466,6 +3472,7 @@ void cpu_reset (CPUCRISState *env)
        /* start in user mode with interrupts enabled.  */
        env->pregs[PR_CCS] |= U_FLAG | I_FLAG;
 #else
+       cris_mmu_init(env);
        env->pregs[PR_CCS] = 0;
 #endif
 }
This page took 0.019423 seconds and 4 git commands to generate.