David Gibson 12dbeb16d0 ppc: Rewrite ppc_get_compat_smt_threads()
To continue consolidation of compatibility mode information, this rewrites
the ppc_get_compat_smt_threads() function using the table of compatiblity
modes in target-ppc/compat.c.

It's not a direct replacement, the new ppc_compat_max_threads() function
has simpler semantics - it just returns the number of threads the cpu
model has, taking into account any compatiblity mode it is in.

This no longer takes into account kvmppc_smt_threads() as the previous
version did.  That check wasn't useful because we check in
ppc_cpu_realizefn() that CPUs aren't instantiated with more threads
than kvm allows (or if we didn't things will already be broken and
this won't make it any worse).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2017-01-31 10:10:13 +11:00
..
2016-10-04 13:28:07 +01:00
2017-01-27 18:08:00 +01:00
2017-01-27 18:07:59 +01:00
2017-01-20 11:15:06 +00:00
2017-01-10 14:52:34 +00:00
2016-05-18 15:04:27 +03:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:59 +01:00
2017-01-24 17:54:47 +00:00
2017-01-25 10:42:26 +00:00
2016-01-29 15:07:25 +00:00
2017-01-24 23:26:52 +03:00
2016-09-22 18:13:08 +01:00
2016-10-28 18:17:24 +03:00
2016-09-15 15:32:22 +03:00
2017-01-25 10:42:26 +00:00