diff options
author | Greg Kurz <groug@kaod.org> | 2016-07-02 00:41:32 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-07-05 10:43:02 +1000 |
commit | c4e6c42353fe735add45b790f8d3a323590f7cab (patch) | |
tree | 48c1768ce67462671fe91e8f7781f08f5c1b5d6b /target-ppc/translate_init.c | |
parent | 7093645a843e5da1a750bc451dd8c9107d595c61 (diff) | |
download | qemu-c4e6c42353fe735add45b790f8d3a323590f7cab.tar.gz qemu-c4e6c42353fe735add45b790f8d3a323590f7cab.tar.bz2 qemu-c4e6c42353fe735add45b790f8d3a323590f7cab.zip |
ppc: simplify max_smt initialization in ppc_cpu_realizefn()
kvmppc_smt_threads() returns 1 if KVM is not enabled.
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target-ppc/translate_init.c')
-rw-r--r-- | target-ppc/translate_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 843f19b748..a06bf50b65 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -9516,7 +9516,7 @@ static void ppc_cpu_realizefn(DeviceState *dev, Error **errp) PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); Error *local_err = NULL; #if !defined(CONFIG_USER_ONLY) - int max_smt = kvm_enabled() ? kvmppc_smt_threads() : 1; + int max_smt = kvmppc_smt_threads(); #endif #if !defined(CONFIG_USER_ONLY) |