ppc/pnv: Introduce a pnv_xive_block_id() helper
commitdc2526e45a0ffebc88d7ed007d906f669827f834
authorCédric Le Goater <clg@kaod.org>
Mon, 25 Nov 2019 06:58:18 +0000 (25 07:58 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:48 +0000 (17 10:39 +1100)
tree5cf5412af13cc63ae4415cd0346862c641b4a8b5
parentd1f2a574b9f686a1ddc634c2c01381fdc04eb37c
ppc/pnv: Introduce a pnv_xive_block_id() helper

When PC_TCTXT_CHIPID_OVERRIDE is configured, the PC_TCTXT_CHIPID field
overrides the hardwired chip ID in the Powerbus operations and for CAM
compares. This is typically used in the one block-per-chip configuration
to associate a unique block id number to each IC of the system.

Simplify the model with a pnv_xive_block_id() helper and remove
'tctx_chipid' which becomes useless.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20191125065820.927-19-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/pnv_xive.c
include/hw/ppc/pnv_xive.h