diff options
author | Richard Henderson | 2017-07-30 21:30:41 +0200 |
---|---|---|
committer | Richard Henderson | 2017-09-07 20:57:35 +0200 |
commit | 659ef5cbb893872d25e9d95191cc23b16546c8a1 (patch) | |
tree | a86cecc0404c2e682d7582ab3e5ceda0f0cc6ee9 /tcg/ppc | |
parent | tcg: Move USE_DIRECT_JUMP discriminator to tcg/cpu/tcg-target.h (diff) | |
download | qemu-659ef5cbb893872d25e9d95191cc23b16546c8a1.tar.gz qemu-659ef5cbb893872d25e9d95191cc23b16546c8a1.tar.xz qemu-659ef5cbb893872d25e9d95191cc23b16546c8a1.zip |
tcg: Rearrange ldst label tracking
Dispense with TCGBackendData, as it has never been used for more than
holding a single pointer. Use a define in the cpu/tcg-target.h to
signal requirement for TCGLabelQemuLdst, so that we can drop the no-op
tcg-be-null.h stubs. Rename tcg-be-ldst.h to tcg-ldst.inc.c.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/ppc')
-rw-r--r-- | tcg/ppc/tcg-target.h | 4 | ||||
-rw-r--r-- | tcg/ppc/tcg-target.inc.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index aa44e715d8..3772cc6648 100644 --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -129,4 +129,8 @@ void tb_target_set_jmp_target(uintptr_t, uintptr_t, uintptr_t); #define TCG_TARGET_DEFAULT_MO (0) +#ifdef CONFIG_SOFTMMU +#define TCG_TARGET_NEED_LDST_LABELS +#endif + #endif diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c index 018c240f6d..d772faf7be 100644 --- a/tcg/ppc/tcg-target.inc.c +++ b/tcg/ppc/tcg-target.inc.c @@ -22,8 +22,6 @@ * THE SOFTWARE. */ -#include "tcg-be-ldst.h" - #if defined _CALL_DARWIN || defined __APPLE__ #define TCG_TARGET_CALL_DARWIN #endif @@ -1418,6 +1416,8 @@ static const uint32_t qemu_exts_opc[4] = { }; #if defined (CONFIG_SOFTMMU) +#include "tcg-ldst.inc.c" + /* helper signature: helper_ld_mmu(CPUState *env, target_ulong addr, * int mmu_idx, uintptr_t ra) */ |