mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 21:42:06 -06:00
linux-user: Change thread_env to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
182735efaf
commit
a2247f8ec9
6 changed files with 27 additions and 22 deletions
|
@ -4171,8 +4171,8 @@ static void *clone_func(void *arg)
|
|||
|
||||
env = info->env;
|
||||
cpu = ENV_GET_CPU(env);
|
||||
thread_env = env;
|
||||
ts = (TaskState *)thread_env->opaque;
|
||||
thread_cpu = cpu;
|
||||
ts = (TaskState *)env->opaque;
|
||||
info->tid = gettid();
|
||||
cpu->host_tid = info->tid;
|
||||
task_settid(ts);
|
||||
|
@ -5079,7 +5079,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
|||
sys_futex(g2h(ts->child_tidptr), FUTEX_WAKE, INT_MAX,
|
||||
NULL, NULL, 0);
|
||||
}
|
||||
thread_env = NULL;
|
||||
thread_cpu = NULL;
|
||||
object_unref(OBJECT(ENV_GET_CPU(cpu_env)));
|
||||
g_free(ts);
|
||||
pthread_exit(NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue