diff options
author | Andreas Färber <afaerber@suse.de> | 2012-12-17 03:27:07 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-01-15 04:09:13 +0100 |
commit | ce3960ebe57d0601a3628b64adac6fd23c901f70 (patch) | |
tree | 0f3cbd92e527d7164bcdd88c6d624d2d6834498c /cpus.c | |
parent | cf7c3f0cb5a7129f57fa9e69d410d6a05031988c (diff) | |
download | qemu-ce3960ebe57d0601a3628b64adac6fd23c901f70.zip qemu-ce3960ebe57d0601a3628b64adac6fd23c901f70.tar.gz qemu-ce3960ebe57d0601a3628b64adac6fd23c901f70.tar.bz2 |
cpu: Move nr_{cores,threads} fields to CPUState
To facilitate the field movements, pass MIPSCPU to malta_mips_config();
avoid that for mips_cpu_map_tc() since callers only access MIPS Thread
Contexts, inside TCG helpers.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'cpus.c')
-rw-r--r-- | cpus.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1041,8 +1041,8 @@ void qemu_init_vcpu(void *_env) CPUArchState *env = _env; CPUState *cpu = ENV_GET_CPU(env); - env->nr_cores = smp_cores; - env->nr_threads = smp_threads; + cpu->nr_cores = smp_cores; + cpu->nr_threads = smp_threads; cpu->stopped = true; if (kvm_enabled()) { qemu_kvm_start_vcpu(env); |