diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-03 01:50:44 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-10-31 01:02:45 +0100 |
commit | e5ab30a2e6ee5f649af0639f93b6e8f6587e7ba1 (patch) | |
tree | f1cfb50701f559bf7bf92d1d0ccf4ae3595ec2e8 | |
parent | c3586ba73fd4523a38c658f730cc38ec17b60491 (diff) | |
download | hqemu-e5ab30a2e6ee5f649af0639f93b6e8f6587e7ba1.zip hqemu-e5ab30a2e6ee5f649af0639f93b6e8f6587e7ba1.tar.gz |
cpus: Pass CPUState to qemu_tcg_init_vcpu()
CPUArchState is no longer needed.
Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r-- | cpus.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -991,11 +991,8 @@ void resume_all_vcpus(void) } } -static void qemu_tcg_init_vcpu(void *_env) +static void qemu_tcg_init_vcpu(CPUState *cpu) { - CPUArchState *env = _env; - CPUState *cpu = ENV_GET_CPU(env); - /* share a single thread for all cpus with TCG */ if (!tcg_cpu_thread) { cpu->thread = g_malloc0(sizeof(QemuThread)); @@ -1056,7 +1053,7 @@ void qemu_init_vcpu(void *_env) if (kvm_enabled()) { qemu_kvm_start_vcpu(env); } else if (tcg_enabled()) { - qemu_tcg_init_vcpu(env); + qemu_tcg_init_vcpu(cpu); } else { qemu_dummy_start_vcpu(env); } |