qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Fix call_pal() prototype for alpha system emula


From: Aurelien Jarno
Subject: Re: [Qemu-devel] [PATCH] Fix call_pal() prototype for alpha system emulation
Date: Tue, 2 Sep 2008 02:11:07 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Sat, Aug 16, 2008 at 06:08:28PM +0200, Hervé Poussineau wrote:
> Hi,
> 
> - Fix call_pal() function prototype which is different depending of
> CONFIG_USER_ONLY.

I have applied this part.

> - Add cpu_reset() function, required for system emulation

This is wrong, this has to be defined in hw/ along with the machine
code.

> Hervé

> Index: target-alpha/cpu.h
> ===================================================================
> --- target-alpha/cpu.h        (revision 5013)
> +++ target-alpha/cpu.h        (working copy)
> @@ -411,7 +411,11 @@
>  int cpu_alpha_mtpr (CPUState *env, int iprn, uint64_t val, uint64_t 
> *oldvalp);
>  void cpu_loop_exit (void);
>  void pal_init (CPUState *env);
> +#if !defined (CONFIG_USER_ONLY)
> +void call_pal (CPUState *env);
> +#else
>  void call_pal (CPUState *env, int palcode);
> +#endif
>  
>  #define CPU_PC_FROM_TB(env, tb) env->pc = tb->pc
>  
> Index: target-alpha/translate.c
> ===================================================================
> --- target-alpha/translate.c  (revision 5013)
> +++ target-alpha/translate.c  (working copy)
> @@ -2138,6 +2138,10 @@
>      return env;
>  }
>  
> +void cpu_reset (CPUAlphaState *env)
> +{
> +}
> +
>  void gen_pc_load(CPUState *env, TranslationBlock *tb,
>                  unsigned long searched_pc, int pc_pos, void *puc)
>  {


-- 
  .''`.  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]