diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-21 23:33:12 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-21 23:33:12 +0000 |
commit | c68ea7043f2ed4c631d1e3a4f35afe247d5ca063 (patch) | |
tree | 64b42bfd3fe62caf019e384cee26e80b98da831d /linux-user/main.c | |
parent | 173d6cfe5129301a3a8f2570223aaa47a815f343 (diff) |
cpu_single_env usage fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1644 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/main.c')
-rw-r--r-- | linux-user/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 468cb9b89f..1ae4656d3a 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -997,8 +997,6 @@ void usage(void) /* XXX: currently only used for async signals (see signal.c) */ CPUState *global_env; -/* used only if single thread */ -CPUState *cpu_single_env = NULL; /* used to free thread contexts */ TaskState *first_task_state; @@ -1228,10 +1226,10 @@ int main(int argc, char **argv) // ppc_find_by_name("604e", &def); // ppc_find_by_name("604", &def); if (def == NULL) { - cpu_abort(cpu_single_env, + cpu_abort(env, "Unable to find PowerPC CPU definition\n"); } - cpu_ppc_register(cpu_single_env, def); + cpu_ppc_register(env, def); for (i = 0; i < 32; i++) { if (i != 12 && i != 6 && i != 13) |