ppc/pnv: make pnv_ics_resend() use chip8->phbs[]
commitca45948991c1d22b30197cc741799f2543d42c37
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 21 Jun 2022 17:34:33 +0000 (21 14:34 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 6 Jul 2022 13:22:37 +0000 (6 10:22 -0300)
treec738ee1560691b98cd6aff698587ce0a08c9fb04
parentda6be50136800dee59e22ac95a6ee10c154e1210
ppc/pnv: make pnv_ics_resend() use chip8->phbs[]

pnv_ics_resend() is scrolling through all the child objects of the chip
to search for the PHBs. It's faster and simpler to just use the phbs[]
array.

pnv_ics_resend_child() was folded into pnv_ics_resend() since it's too
simple to justify its own function.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220621173436.165912-6-danielhb413@gmail.com>
hw/ppc/pnv.c