qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str


From: Aurelien Jarno
Subject: Re: [Qemu-devel] [PATCH] sh4 doesn't set the cpu_model_str
Date: Mon, 15 Sep 2008 09:34:55 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

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
 `. `'   address@hidden         | address@hidden
   `-    people.debian.org/~aurel32 | www.aurel32.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]