tcg/tci: Make tci_tb_ptr thread-local
commit13e71f08bf66646d9818f6430f337c965b241746
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 24 Jan 2021 20:57:01 +0000 (24 10:57 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Feb 2021 20:24:14 +0000 (5 10:24 -1000)
tree063f44f3bffe4e2711ee683d23cb0a83b7892b9e
parentc6fbea47664466e526e40300568324ef77e5f2cc
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>
include/exec/exec-all.h
tcg/tcg-common.c
tcg/tci.c