mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
user: Use get_task_state() helper
Get the TaskState pointer calling get_task_state(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240428221450.26460-11-philmd@linaro.org>
This commit is contained in:
parent
8019601324
commit
59272469bd
3 changed files with 6 additions and 5 deletions
|
@ -6463,7 +6463,7 @@ static abi_long do_prctl(CPUArchState *env, abi_long option, abi_long arg2,
|
|||
|
||||
case PR_GET_TID_ADDRESS:
|
||||
{
|
||||
TaskState *ts = env_cpu(env)->opaque;
|
||||
TaskState *ts = get_task_state(env_cpu(env));
|
||||
return put_user_ual(ts->child_tidptr, arg2);
|
||||
}
|
||||
|
||||
|
@ -8124,7 +8124,7 @@ static int open_self_maps_2(void *opaque, target_ulong guest_start,
|
|||
static int open_self_maps_1(CPUArchState *env, int fd, bool smaps)
|
||||
{
|
||||
struct open_self_maps_data d = {
|
||||
.ts = env_cpu(env)->opaque,
|
||||
.ts = get_task_state(env_cpu(env)),
|
||||
.host_maps = read_self_maps(),
|
||||
.fd = fd,
|
||||
.smaps = smaps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue