diff options
author | Caleb Schlossin <calebs@linux.vnet.ibm.com> | 2024-02-27 14:36:23 -0600 |
---|---|---|
committer | Nicholas Piggin <npiggin@gmail.com> | 2024-03-13 02:47:04 +1000 |
commit | 9940412ae4ae2d4971959c13311ba8d822974452 (patch) | |
tree | aeeea6c94ebb348eaa93b57838d40371099cee3f /target/ppc | |
parent | 0b8893236ef11dd26be9290156ea34cb122e4dbe (diff) | |
download | qemu-9940412ae4ae2d4971959c13311ba8d822974452.zip qemu-9940412ae4ae2d4971959c13311ba8d822974452.tar.gz qemu-9940412ae4ae2d4971959c13311ba8d822974452.tar.bz2 |
ppc/pnv: Improve pervasive topology calculation for big-core
Big (SMT8) cores have a complicated function to map the core, thread ID
to pervasive topology (PIR). Fix this for power8, power9, and power10.
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Caleb Schlossin <calebs@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'target/ppc')
-rw-r--r-- | target/ppc/misc_helper.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/target/ppc/misc_helper.c b/target/ppc/misc_helper.c index a9d41d2..58e808d 100644 --- a/target/ppc/misc_helper.c +++ b/target/ppc/misc_helper.c @@ -49,9 +49,6 @@ void helper_spr_core_write_generic(CPUPPCState *env, uint32_t sprn, CPUState *cs = env_cpu(env); CPUState *ccs; uint32_t nr_threads = cs->nr_threads; - uint32_t core_id = env->spr[SPR_PIR] & ~(nr_threads - 1); - - assert(core_id == env->spr[SPR_PIR] - env->spr[SPR_TIR]); if (nr_threads == 1) { env->spr[sprn] = val; |