qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 09/10] target-tricore: add FRET instructions of


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 09/10] target-tricore: add FRET instructions of the v1.6 ISA
Date: Thu, 21 May 2015 10:29:21 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 05/13/2015 02:45 AM, Bastian Koppelmann wrote:
> +static void gen_fret(DisasContext *ctx)
> +{
> +    tcg_gen_andi_tl(cpu_PC, cpu_gpr_a[11], ~0x1);
> +    tcg_gen_qemu_ld_tl(cpu_gpr_a[11], cpu_gpr_a[10], ctx->mem_idx, MO_LESL);
> +    tcg_gen_addi_tl(cpu_gpr_a[10], cpu_gpr_a[10], 4);
> +    tcg_gen_exit_tb(0);
> +    ctx->bstate = BS_BRANCH;
> +}

Likewise, if the load traps, surely PC isn't updated.


r~



reply via email to

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