* [Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str
@ 2008-09-10 9:55 michael
0 siblings, 0 replies; 3+ messages in thread
From: michael @ 2008-09-10 9:55 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str
@ 2008-09-10 9:56 michael
2008-09-15 7:34 ` Aurelien Jarno
0 siblings, 1 reply; 3+ messages in thread
From: michael @ 2008-09-10 9:56 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 130 bytes --]
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
[-- Attachment #2: sh4.patch --]
[-- Type: text/x-patch, Size: 427 bytes --]
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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str
2008-09-10 9:56 [Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str michael
@ 2008-09-15 7:34 ` Aurelien Jarno
0 siblings, 0 replies; 3+ messages in thread
From: Aurelien Jarno @ 2008-09-15 7:34 UTC (permalink / raw)
To: qemu-devel
On Wed, Sep 10, 2008 at 11:56:24AM +0200, michael wrote:
> 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.
> 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);
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-15 7:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-10 9:56 [Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str michael
2008-09-15 7:34 ` Aurelien Jarno
-- strict thread matches above, loose matches on Subject: below --
2008-09-10 9:55 michael
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).