qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 08/15] target-tricore: Add instructions of SSR o


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 08/15] target-tricore: Add instructions of SSR opcode format
Date: Mon, 07 Jul 2014 13:22:30 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 07/07/2014 11:13 AM, Bastian Koppelmann wrote:
> +    case OPC1_16_SSR_ST_B:
> +        r1 = MASK_OP_SSR_S1(ctx->opcode);
> +        r2 = MASK_OP_SSR_S2(ctx->opcode);
> +        temp = tcg_temp_new();
> +        tcg_gen_andi_tl(temp, cpu_gpr_d[r1], 0xff);
> +        tcg_gen_qemu_st8(temp, cpu_gpr_a[r2], ctx->mem_idx);
> +        tcg_temp_free(temp);

The andi is just silly.  Of course the st8 will only examine the low 8 bits.

Likewise for the _H insns.


r~



reply via email to

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