[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str
From: |
michael |
Subject: |
[Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str |
Date: |
Wed, 10 Sep 2008 11:56:24 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080724) |
Hi all,
this patch fix the setting of cpu_model_str for the sh4 cpu. When the qemu
do a cpu_copy can crash.
Regards Michael
Fix setting of cpu_model_str for sh4
Index: target-sh4/translate.c
===================================================================
--- target-sh4/translate.c (revision 5181)
+++ target-sh4/translate.c (working copy)
@@ -243,6 +243,7 @@
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);