diff mbox

[v3,05/35] tcg: Move tcg_tb_ptr to -common

Message ID 7dfe09696a5020246e63c3ba4ef04600c47c6a88.1437212383.git.crosthwaite.peter@gmail.com
State New
Headers show

Commit Message

Peter Crosthwaite July 18, 2015, 9:40 a.m. UTC
This requires global visibility to common code. Move to tcg-common.

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
---
 tcg/tcg-common.c | 2 ++
 tci.c            | 6 ------
 2 files changed, 2 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/tcg/tcg-common.c b/tcg/tcg-common.c
index 8a848d0..c380533 100644
--- a/tcg/tcg-common.c
+++ b/tcg/tcg-common.c
@@ -24,6 +24,8 @@ 
 
 #include "tcg/tcg.h"
 
+uintptr_t tci_tb_ptr;
+
 TCGOpDef tcg_op_defs[] = {
 #define DEF(s, oargs, iargs, cargs, flags) { #s, oargs, iargs, cargs, iargs + oargs + cargs, flags },
 #include "tcg-opc.h"
diff --git a/tci.c b/tci.c
index 8444948..02e46e8 100644
--- a/tci.c
+++ b/tci.c
@@ -52,12 +52,6 @@  typedef uint64_t (*helper_function)(tcg_target_ulong, tcg_target_ulong,
                                     tcg_target_ulong);
 #endif
 
-/* Targets which don't use GETPC also don't need tci_tb_ptr
-   which makes them a little faster. */
-#if defined(GETPC)
-uintptr_t tci_tb_ptr;
-#endif
-
 static tcg_target_ulong tci_reg[TCG_TARGET_NB_REGS];
 
 static tcg_target_ulong tci_read_reg(TCGReg index)