mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
c6fbea4766
commit
13e71f08bf
3 changed files with 4 additions and 9 deletions
|
@ -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 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue