]> Git Repo - qemu.git/commitdiff
tci: do not use CPUArchState in tcg-target.h
authorPaolo Bonzini <[email protected]>
Tue, 19 May 2015 07:59:34 +0000 (09:59 +0200)
committerAlexander Graf <[email protected]>
Wed, 3 Jun 2015 21:56:55 +0000 (23:56 +0200)
tcg-target.h does not use any QEMU-specific symbols, save for tci's usage
of CPUArchState.  Pull that up to tcg/tcg.h.

This will make it possible to include tcg-target.h in cpu-defs.h.

Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
tcg/tcg.h
tcg/tci/tcg-target.h

index 8098f824b3612e3827c5f43342ddf07d7748ad7b..41e486959d23cf876e21502a37d875a8479af26b 100644 (file)
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -927,7 +927,9 @@ static inline unsigned get_mmuidx(TCGMemOpIdx oi)
 #define TB_EXIT_ICOUNT_EXPIRED 2
 #define TB_EXIT_REQUESTED 3
 
-#if !defined(tcg_qemu_tb_exec)
+#ifdef HAVE_TCG_QEMU_TB_EXEC
+uintptr_t tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr);
+#else
 # define tcg_qemu_tb_exec(env, tb_ptr) \
     ((uintptr_t (*)(void *, void *))tcg_ctx.code_gen_prologue)(env, tb_ptr)
 #endif
index bd1e97468c915aa1d7fd47f1ee370d5402d43f91..662d45c22fb8d15b178bfd8cb9fb30055f7184c1 100644 (file)
@@ -175,8 +175,7 @@ typedef enum {
 
 void tci_disas(uint8_t opc);
 
-uintptr_t tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr);
-#define tcg_qemu_tb_exec tcg_qemu_tb_exec
+#define HAVE_TCG_QEMU_TB_EXEC
 
 static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
 {
This page took 0.027829 seconds and 4 git commands to generate.