spapr/xive: remove redundant check in spapr_match_nvt()
authorCédric Le Goater <clg@kaod.org>
Mon, 6 Jan 2020 16:32:07 +0000 (17:32 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 8 Jan 2020 00:01:59 +0000 (11:01 +1100)
commitbaa45b17101c5375be031edb863e94a79c75b86c
tree25bd8fa6377e0696aaf9724990c40a6fad1536db
parente44acde2f89e72139a44bc2db8183286ba5d4e07
spapr/xive: remove redundant check in spapr_match_nvt()

spapr_match_nvt() is a XIVE operation and is used by the machine to
look for a matching target when an event notification is being
delivered. An assert checks that spapr_match_nvt() is called only when
the machine has selected the XIVE interrupt mode but it is redundant
with the XIVE_PRESENTER() dynamic cast.

Apply the cast to spapr->active_intc and remove the assert.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20200106163207.4608-1-clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c