qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/9] NiosII: Add support for the Altera NiosII s


From: Chris Wulff
Subject: Re: [Qemu-devel] [PATCH 1/9] NiosII: Add support for the Altera NiosII soft-core CPU.
Date: Sat, 15 Sep 2012 11:33:17 -0400



On Tue, Sep 11, 2012 at 5:34 PM, Aurelien Jarno <address@hidden> wrote:
On Sun, Sep 09, 2012 at 08:19:59PM -0400, address@hidden wrote:
> From: Chris Wulff <address@hidden>
>
> Signed-off-by: Chris Wulff <address@hidden>

> +    tcg_gen_movi_tl(dc->cpu_R[R_RA], dc->pc + 4);
> +    tcg_gen_movi_tl(dc->cpu_R[R_PC],
> +                    (dc->pc & 0xF0000000) | (instr->imm26 * 4));
> +
> +    dc->is_jmp = DISAS_JUMP;
> +}
> +

You probably want to add some tcg_gen_goto_tb() for static jumps, so
that TB linking is possible. It greatly improves the speed of the
emulation.



Doing this actually made quite a big difference. The reported bogomips from linux went up 15x and the observable speed by about 2x. The rest of your suggested changes didn't have much noticeable effect but were at least good things to clean up anyway.

  -- Chris Wulff

reply via email to

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