diff options
author | Andreas Färber <afaerber@suse.de> | 2012-12-17 07:12:13 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-02-16 14:50:59 +0100 |
commit | 0d34282fdde1d8f337d2a9e10f5ac793b12ef2e7 (patch) | |
tree | e4a26af7c6a412c3f9c3fefde289add21fd7c5ad /linux-user | |
parent | 6ae064fc671f1c475b1371c067fa3100ec6daf80 (diff) | |
download | hqemu-0d34282fdde1d8f337d2a9e10f5ac793b12ef2e7.zip hqemu-0d34282fdde1d8f337d2a9e10f5ac793b12ef2e7.tar.gz |
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>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 9e31ea7..19630ea 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -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); |