mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/ppc: Add helpers to check for SMT sibling threads
Add helpers for TCG code to determine if there are SMT siblings sharing per-core and per-lpar registers. This simplifies the callers and makes SMT register topology simpler to modify with later changes. Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
feb37fdc82
commit
50d8cfb949
5 changed files with 30 additions and 47 deletions
|
@ -6976,7 +6976,7 @@ static void ppc_cpu_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
pcc->parent_realize(dev, errp);
|
||||
|
||||
if (env_cpu(env)->nr_threads > 1) {
|
||||
if (!ppc_cpu_core_single_threaded(cs)) {
|
||||
env->flags |= POWERPC_FLAG_SMT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue