summaryrefslogtreecommitdiffstats
path: root/iothread.c
diff options
context:
space:
mode:
authorCédric Le Goater2021-12-17 17:57:19 +0100
committerCédric Le Goater2021-12-17 17:57:19 +0100
commitaa8cc84d88945088e4588aeaa31573fb4ed3b27a (patch)
tree710d4901bf8de76b88f650ba09ca37ae9d70c2a6 /iothread.c
parentppc/pnv: Introduce a num_stack class attribute (diff)
downloadqemu-aa8cc84d88945088e4588aeaa31573fb4ed3b27a.tar.gz
qemu-aa8cc84d88945088e4588aeaa31573fb4ed3b27a.tar.xz
qemu-aa8cc84d88945088e4588aeaa31573fb4ed3b27a.zip
ppc/pnv: Compute the PHB index from the PHB4 PEC model
Use the num_stacks class attribute to compute the PHB index depending on the PEC index : * PEC0 provides 1 PHB (PHB0) * PEC1 provides 2 PHBs (PHB1 and PHB2) * PEC2 provides 3 PHBs (PHB3, PHB4 and PHB5) The routine pnv_pec_phb_offset() is a bit complex but it also prepares ground for PHB5 which has a different layout of stacks: 3 per PECs. Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20211213132830.108372-12-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'iothread.c')
0 files changed, 0 insertions, 0 deletions