Skip to contentSkip to conversation

sh4 doesn't set the cpu_model_str

PATCH Applied michael 2 participants 2 messages Sep 10, 2008 – Sep 15, 2008

lore
Share & tools
lore

michael

author
#0 lore raw

PATCH 1/1 sh4 doesn't set the cpu_model_str

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

translate.c +1 -0
Index: target-sh4/translate.c
===================================================================
@@ -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);
#1 lore raw
Quoted 4 lines · michael

Hi all,

this patch fix the setting of cpu_model_str for the sh4 cpu. When the qemu do a cpu_copy can crash.

Thanks, applied.

Quoted 20 lines

Regards Michael

Fix setting of cpu_model_str for sh4

Index: target-sh4/translate.c
===================================================================

translate.c +1 -0
@@ -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);
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net