aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg-common.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-01-24 10:57:01 -1000
committerRichard Henderson <richard.henderson@linaro.org>2021-02-05 10:24:14 -1000
commit13e71f08bf66646d9818f6430f337c965b241746 (patch)
tree063f44f3bffe4e2711ee683d23cb0a83b7892b9e /tcg/tcg-common.c
parentc6fbea47664466e526e40300568324ef77e5f2cc (diff)
tcg/tci: Make tci_tb_ptr thread-local
Each thread must have its own pc, even under TCI. Remove the GETPC ifdef, because GETPC is always available for helpers, and thus is always required. Move the assignment under INDEX_op_call, because the value is only visible when we make a call to a helper function. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210204014509.882821-6-richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg-common.c')
-rw-r--r--tcg/tcg-common.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tcg/tcg-common.c b/tcg/tcg-common.c
index 7e1992e79e..aa0c4f60c9 100644
--- a/tcg/tcg-common.c
+++ b/tcg/tcg-common.c
@@ -25,10 +25,6 @@
#include "qemu/osdep.h"
#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 },