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)
downloadqemu-a2247f8ec919c51c5749c2e3659841f1a733cce3.zip
qemu-a2247f8ec919c51c5749c2e3659841f1a733cce3.tar.gz
qemu-a2247f8ec919c51c5749c2e3659841f1a733cce3.tar.bz2
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 381ab89..5cd6d91 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;