aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/main.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-06-09 19:51:23 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-09 21:33:01 +0200
commitdca1173c20e7e7366a9c36f88ae4234e5387ed28 (patch)
tree2f8220d645b5c9e2dbbded7d77f41c7e398be108 /bsd-user/main.c
parenta2247f8ec919c51c5749c2e3659841f1a733cce3 (diff)
downloadqemu-dca1173c20e7e7366a9c36f88ae4234e5387ed28.zip
qemu-dca1173c20e7e7366a9c36f88ae4234e5387ed28.tar.gz
qemu-dca1173c20e7e7366a9c36f88ae4234e5387ed28.tar.bz2
bsd-user: Change thread_env to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'bsd-user/main.c')
-rw-r--r--bsd-user/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 75dbd7f..1e92552 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -92,7 +92,7 @@ void fork_start(void)
void fork_end(int child)
{
if (child) {
- gdbserver_fork(thread_env);
+ gdbserver_fork((CPUArchState *)thread_cpu->env_ptr);
}
}
@@ -713,7 +713,7 @@ static void usage(void)
exit(1);
}
-THREAD CPUArchState *thread_env;
+THREAD CPUState *thread_cpu;
/* Assumes contents are already zeroed. */
void init_task_state(TaskState *ts)
@@ -915,7 +915,7 @@ int main(int argc, char **argv)
#if defined(TARGET_SPARC) || defined(TARGET_PPC)
cpu_reset(ENV_GET_CPU(env));
#endif
- thread_env = env;
+ thread_cpu = ENV_GET_CPU(env);
if (getenv("QEMU_STRACE")) {
do_strace = 1;