sh4: doesn't set the cpu_model_str
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Sep 2008 07:34:45 +0000 (07:34 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Sep 2008 07:34:45 +0000 (07:34 +0000)
Fix setting of cpu_model_str for sh4

(Michael Trimarchi)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5222 c046a42c-6fe2-441c-8c8c-71466251a162

target-sh4/translate.c

index 3943ab3..e170cab 100644 (file)
@@ -243,6 +243,7 @@ CPUSH4State *cpu_sh4_init(const char *cpu_model)
        return NULL;
     cpu_exec_init(env);
     sh4_translate_init();
+    env->cpu_model_str = cpu_model;
     cpu_sh4_reset(env);
     cpu_sh4_register(env, def);
     tlb_flush(env, 1);