OSDN Git Service

tcg: introduce **tcg_ctxs to keep track of all TCGContext's
authorEmilio G. Cota <cota@braap.org>
Wed, 12 Jul 2017 22:26:40 +0000 (18:26 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Oct 2017 20:53:42 +0000 (13:53 -0700)
commitdf2cce2968069526553d82331ce9817eaca6b03a
treebf892ab107f5095e8e85963b475bd65f3d8a674d
parent26689780f838f6be13c3878b973ad4a83c0e8071
tcg: introduce **tcg_ctxs to keep track of all TCGContext's

Groundwork for supporting multiple TCG contexts.

Note that having n_tcg_ctxs is unnecessary. However, it is
convenient to have it, since it will simplify iterating over the
array: we'll have just a for loop instead of having to iterate
over a NULL-terminated array (which would require n+1 elems)
or having to check with ifdef's for usermode/softmmu.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg.c