aboutsummaryrefslogtreecommitdiff
path: root/linux-user/linuxload.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-06-09 19:47:04 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-09 21:33:01 +0200
commita2247f8ec919c51c5749c2e3659841f1a733cce3 (patch)
treeaaadd0ec73949c9dd01af0233f863c3a7b91bb30 /linux-user/linuxload.c
parent182735efaf956ccab50b6d74a4fed163e0f35660 (diff)
linux-user: Change thread_env to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'linux-user/linuxload.c')
-rw-r--r--linux-user/linuxload.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c
index 381ab8914b..5cd6d91554 100644
--- a/linux-user/linuxload.c
+++ b/linux-user/linuxload.c
@@ -89,7 +89,8 @@ static int prepare_binprm(struct linux_binprm *bprm)
abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp,
abi_ulong stringp, int push_ptr)
{
- TaskState *ts = (TaskState *)thread_env->opaque;
+ CPUArchState *env = thread_cpu->env_ptr;
+ TaskState *ts = (TaskState *)env->opaque;
int n = sizeof(abi_ulong);
abi_ulong envp;
abi_ulong argv;