]> git.proxmox.com Git - mirror_qemu.git/commit - accel/tcg/translate-all.c
tcg: Move USE_DIRECT_JUMP discriminator to tcg/cpu/tcg-target.h
authorRichard Henderson <rth@twiddle.net>
Tue, 1 Aug 2017 05:02:31 +0000 (22:02 -0700)
committerRichard Henderson <rth@twiddle.net>
Thu, 7 Sep 2017 18:57:34 +0000 (11:57 -0700)
commita85833933628384d74ec412024d55cf012640287
treecd3ed9260f5c9813102ffce4c006e7bbf3419c03
parentcda4a338c4243fa3bff4498b935340ac7121cc76
tcg: Move USE_DIRECT_JUMP discriminator to tcg/cpu/tcg-target.h

Replace the USE_DIRECT_JUMP ifdef with a TCG_TARGET_HAS_direct_jump
boolean test.  Replace the tb_set_jmp_target1 ifdef with an unconditional
function tb_target_set_jmp_target.

While we're touching all backends, add a parameter for tb->tc_ptr;
we're going to need it shortly for some backends.

Move tb_set_jmp_target and tb_add_jump from exec-all.h to cpu-exec.c.

This opens the possibility for TCG_TARGET_HAS_direct_jump to be
a runtime decision -- based on host cpu capabilities, the size of
code_gen_buffer, or a future debugging switch.

Signed-off-by: Richard Henderson <rth@twiddle.net>
16 files changed:
accel/tcg/cpu-exec.c
accel/tcg/translate-all.c
include/exec/exec-all.h
tcg/aarch64/tcg-target.h
tcg/aarch64/tcg-target.inc.c
tcg/arm/tcg-target.h
tcg/i386/tcg-target.h
tcg/mips/tcg-target.h
tcg/mips/tcg-target.inc.c
tcg/ppc/tcg-target.h
tcg/ppc/tcg-target.inc.c
tcg/s390/tcg-target.h
tcg/sparc/tcg-target.h
tcg/sparc/tcg-target.inc.c
tcg/tcg.h
tcg/tci/tcg-target.h