unicorn/qemu/accel
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
..
tcg tcg: define tcg_init_ctx and make tcg_ctx a pointer 2018-03-14 09:43:58 -04:00
Makefile.objs tcg: Add generic translation framework 2018-03-04 14:31:16 -05:00