unicorn/qemu/accel/tcg
Emilio G. Cota 9d5b378475
tcg: define tcg_init_ctx and make tcg_ctx a pointer
Groundwork for supporting multiple TCG contexts.

The core of this patch is this change to tcg/tcg.h:

> -extern TCGContext tcg_ctx;
> +extern TCGContext tcg_init_ctx;
> +extern TCGContext *tcg_ctx;

Note that for now we set *tcg_ctx to whatever TCGContext is passed
to tcg_context_init -- in this case &tcg_init_ctx.

Backports commit b1311c4acf503dc9c1a310cc40b64f05b08833dc from qemu
2018-03-14 09:43:58 -04:00
..
atomic_template.h accel/tcg: move atomic_template.h to accel/tcg/ 2018-03-13 12:28:50 -04:00
cpu-exec-common.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
cpu-exec.c tcg: take tb_ctx out of TCGContext 2018-03-14 09:18:12 -04:00
cputlb.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
Makefile.objs tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
softmmu_template.h accel/tcg: move softmmu_template.h to accel/tcg/ 2018-03-13 12:27:04 -04:00
tcg-runtime-gvec.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
tcg-runtime.c tcg: define CF_PARALLEL and use it for TB hashing along with CF_COUNT_MASK 2018-03-13 14:32:43 -04:00
tcg-runtime.h tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
translate-all.c tcg: define tcg_init_ctx and make tcg_ctx a pointer 2018-03-14 09:43:58 -04:00
translate-all.h tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
translate-common.c tcg: move tcg backend files into accel/tcg/ 2018-03-13 11:48:15 -04:00
translator.c tcg: convert tb->cflags reads to tb_cflags(tb) 2018-03-13 14:57:51 -04:00