qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 03/40] Add GEN_VXFORM macro for subsequent instr


From: Aurelien Jarno
Subject: Re: [Qemu-devel] [PATCH 03/40] Add GEN_VXFORM macro for subsequent instructions.
Date: Sat, 3 Jan 2009 14:32:38 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Dec 30, 2008 at 07:09:45PM -0800, Nathan Froyd wrote:
> 
> Signed-off-by: Nathan Froyd <address@hidden>
> ---
>  target-ppc/translate.c |   17 +++++++++++++++++
>  1 files changed, 17 insertions(+), 0 deletions(-)

Thanks, applied.

> diff --git a/target-ppc/translate.c b/target-ppc/translate.c
> index 7ba9c26..4ae780b 100644
> --- a/target-ppc/translate.c
> +++ b/target-ppc/translate.c
> @@ -6164,6 +6164,23 @@ GEN_VX_LOGICAL(vor, tcg_gen_or_i64, 2, 18);
>  GEN_VX_LOGICAL(vxor, tcg_gen_xor_i64, 2, 19);
>  GEN_VX_LOGICAL(vnor, tcg_gen_nor_i64, 2, 20);
>  
> +#define GEN_VXFORM(name, opc2, opc3)                                    \
> +GEN_HANDLER(name, 0x04, opc2, opc3, 0x00000000, PPC_ALTIVEC)            \
> +{                                                                       \
> +    TCGv_ptr ra, rb, rd;                                                \
> +    if (unlikely(!ctx->altivec_enabled)) {                              \
> +        gen_exception(ctx, POWERPC_EXCP_VPU);                           \
> +        return;                                                         \
> +    }                                                                   \
> +    ra = gen_avr_ptr(rA(ctx->opcode));                                  \
> +    rb = gen_avr_ptr(rB(ctx->opcode));                                  \
> +    rd = gen_avr_ptr(rD(ctx->opcode));                                  \
> +    gen_helper_##name (rd, ra, rb);                                     \
> +    tcg_temp_free_ptr(ra);                                              \
> +    tcg_temp_free_ptr(rb);                                              \
> +    tcg_temp_free_ptr(rd);                                              \
> +}
> +
>  /***                           SPE extension                               
> ***/
>  /* Register moves */
>  
> -- 
> 1.6.0.5
> 
> 
> 
> 

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