diff options
| author | Richard Henderson | 2016-06-23 04:42:31 +0200 |
|---|---|---|
| committer | Richard Henderson | 2016-08-05 18:14:18 +0200 |
| commit | dcb8e75870e2de199db853697f8839cb603beefe (patch) | |
| tree | bbf412371cc5e364c86fbd812b242e5411b1d751 /include/exec | |
| parent | tcg: Compress liveness data to 16 bits (diff) | |
| download | qemu-dcb8e75870e2de199db853697f8839cb603beefe.tar.gz qemu-dcb8e75870e2de199db853697f8839cb603beefe.tar.xz qemu-dcb8e75870e2de199db853697f8839cb603beefe.zip | |
tcg: Reorg TCGOp chaining
Instead of using -1 as end of chain, use 0, and link through the 0
entry as a fully circular double-linked list.
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/exec')
| -rw-r--r-- | include/exec/gen-icount.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index 1af03d8f23..050de59b38 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -59,7 +59,7 @@ static void gen_tb_end(TranslationBlock *tb, int num_insns) } /* Terminate the linked list. */ - tcg_ctx.gen_op_buf[tcg_ctx.gen_last_op_idx].next = -1; + tcg_ctx.gen_op_buf[tcg_ctx.gen_op_buf[0].prev].next = 0; } static inline void gen_io_start(void) |
