Skip to content

Commit

Permalink
tcg: Move tci_tb_ptr to -common
Browse files Browse the repository at this point in the history
This requires global visibility to common code. Move to tcg-common.

Cc: Stefan Weil <[email protected]>
Signed-off-by: Peter Crosthwaite <[email protected]>
Message-Id: <cb0340eba225ab4945aa6cf7c9013f33aa05bcf8.1441614289.git.crosthwaite.peter@gmail.com>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
pcrost authored and bonzini committed Sep 16, 2015
1 parent 7d8f787 commit 162e992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions tcg/tcg-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

#include "tcg/tcg.h"

#if defined(CONFIG_TCG_INTERPRETER)
uintptr_t tci_tb_ptr;
#endif

TCGOpDef tcg_op_defs[] = {
#define DEF(s, oargs, iargs, cargs, flags) \
{ #s, oargs, iargs, cargs, iargs + oargs + cargs, flags },
Expand Down
6 changes: 0 additions & 6 deletions tci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 162e992

Please sign in to comment.