mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
cpu: Move host_tid field to CPUState
Change gdbstub's cpu_index() argument to CPUState now that CPUArchState is no longer used. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
6ae064fc67
commit
0d34282fdd
6 changed files with 22 additions and 12 deletions
|
@ -4312,13 +4312,15 @@ static void *clone_func(void *arg)
|
|||
{
|
||||
new_thread_info *info = arg;
|
||||
CPUArchState *env;
|
||||
CPUState *cpu;
|
||||
TaskState *ts;
|
||||
|
||||
env = info->env;
|
||||
cpu = ENV_GET_CPU(env);
|
||||
thread_env = env;
|
||||
ts = (TaskState *)thread_env->opaque;
|
||||
info->tid = gettid();
|
||||
env->host_tid = info->tid;
|
||||
cpu->host_tid = info->tid;
|
||||
task_settid(ts);
|
||||
if (info->child_tidptr)
|
||||
put_user_u32(info->tid, info->child_tidptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue