target/ppc: Add helpers to check for SMT sibling threads
authorNicholas Piggin <npiggin@gmail.com>
Fri, 24 May 2024 07:49:52 +0000 (17:49 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:21:06 +0000 (09:21 +1000)
commit50d8cfb949066e4466700e814a0e26719d70a951
treeab7938cefe11c9f1f4c03569693b3d646537786c
parentfeb37fdc821242d86c30bff33abd31bcce01e9e2
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>
target/ppc/cpu.h
target/ppc/cpu_init.c
target/ppc/excp_helper.c
target/ppc/misc_helper.c
target/ppc/timebase_helper.c