Re: [Qemu-devel] [PATCH 2.3 5/8] tcg: Put opcodes in a linked list

2014-11-14 Thread Bastian Koppelmann
On 11/11/2014 04:24 PM, Richard Henderson wrote: +static void tcg_gen_op_begin(TCGContext *ctx, TCGOpcode opc, int args) +{ +int oi = ctx->gen_next_op_idx; +int ni = oi + 1; +int pi = oi - 1; + +tcg_debug_assert(oi < OPC_BUF_SIZE); +ctx->gen_last_op_idx = oi; +ctx->gen_ne

[Qemu-devel] [PATCH 2.3 5/8] tcg: Put opcodes in a linked list

2014-11-11 Thread Richard Henderson
The previous setup required ops and args to be completely sequential, and was error prone when it came to both iteration and optimization. Signed-off-by: Richard Henderson --- include/exec/gen-icount.h | 22 ++- tcg/optimize.c| 286 ++- tcg/tcg-op.c