qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [5112] SH4: convert a few helpers to TCG


From: Blue Swirl
Subject: Re: [Qemu-devel] [5112] SH4: convert a few helpers to TCG
Date: Sat, 30 Aug 2008 08:06:33 +0300

On Sat, Aug 30, 2008 at 2:01 AM, Aurelien Jarno <address@hidden> wrote:
>     case 0xc300:               /* trapa #imm */
> -       CHECK_NOT_DELAY_SLOT tcg_gen_movi_i32(cpu_pc, ctx->pc);
> -       gen_op_trapa(B7_0);
> +       CHECK_NOT_DELAY_SLOT
> +       tcg_gen_movi_i32(cpu_pc, ctx->pc);
> +       tcg_gen_movi_i32(cpu_T[0], B7_0);
> +       tcg_gen_helper_0_1(helper_trapa, cpu_T[0]);

Instead of introducing new uses of cpu_T[0], which you will probably
eliminate in the end of conversion, you could pass B7_0 using a
tcg_const temporary variable.




reply via email to

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