]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/main.c
tcg: define tcg_init_ctx and make tcg_ctx a pointer
authorEmilio G. Cota <cota@braap.org>
Wed, 12 Jul 2017 21:15:52 +0000 (17:15 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Oct 2017 20:53:42 +0000 (13:53 -0700)
commitb1311c4acf503dc9c1a310cc40b64f05b08833dc
tree744c9db497b0e4ee946b1fd6c85910f27b18ae5a
parent44ded3d04821bec57407cc26a8b4db620da2be04
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.

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>
29 files changed:
accel/tcg/tcg-runtime.c
accel/tcg/translate-all.c
bsd-user/main.c
include/exec/gen-icount.h
linux-user/main.c
target/alpha/translate.c
target/arm/translate.c
target/cris/translate.c
target/cris/translate_v10.c
target/hppa/translate.c
target/i386/translate.c
target/lm32/translate.c
target/m68k/translate.c
target/microblaze/translate.c
target/mips/translate.c
target/moxie/translate.c
target/nios2/translate.c
target/openrisc/translate.c
target/ppc/translate.c
target/s390x/translate.c
target/sh4/translate.c
target/sparc/translate.c
target/tilegx/translate.c
target/tricore/translate.c
target/unicore32/translate.c
target/xtensa/translate.c
tcg/tcg-op.c
tcg/tcg.c
tcg/tcg.h