aboutsummaryrefslogtreecommitdiff
path: root/linux-user/signal-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/signal-common.h')
-rw-r--r--linux-user/signal-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/signal-common.h b/linux-user/signal-common.h
index 3e2dc604c2..a7df12fc44 100644
--- a/linux-user/signal-common.h
+++ b/linux-user/signal-common.h
@@ -113,7 +113,7 @@ int process_sigsuspend_mask(sigset_t **pset, target_ulong sigset,
static inline void finish_sigsuspend_mask(int ret)
{
if (ret != -QEMU_ERESTARTSYS) {
- TaskState *ts = (TaskState *)thread_cpu->opaque;
+ TaskState *ts = get_task_state(thread_cpu);
ts->in_sigsuspend = 1;
}
}