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.
To avoid diff churn we could do something like
TCGContext *tcg_ctx_ptr;
#define tcg_ctx (*tcg_ctx_ptr)
as Richard suggested during review, but sooner or later
we'd end up doing the conversion anyway, so do it now.
Signed-off-by: Emilio G. Cota<address@hidden>
---