I suggest to send this patch to mailing list. Approve? This patch converts some TCG data to be TLS on the way to make TCG multithreaded. This work was made in assumption that qemu-tls.h defines a general direction to let each VCPU run in its own thread wile being processed by TCG.
Evgeny Voevodin (1): TCG: Convert global variables to be TLS. bsd-user/main.c | 1 + cpus.c | 2 + darwin-user/main.c | 1 + exec.c | 121 ++++++++++++++++++++++++++++++--------------------- linux-user/main.c | 1 + qemu-common.h | 1 + 6 files changed, 77 insertions(+), 50 deletions(-) -- 1.7.5.4