On 07/16/2017 10:04 AM, Emilio G. Cota wrote:
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<c...@braap.org>
---
That is indeed fewer instances than I would have guessed.
Reviewed-by: Richard Henderson <r...@twiddle.net>
r~