xics: Eliminate 'reject', 'resend' and 'eoi' class hooks
commitd5803c7319f5cc79afda066e2c8b9c61436b43df
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 24 Sep 2019 03:56:47 +0000 (24 13:56 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 09:08:21 +0000 (4 19:08 +1000)
treece6f99b3e1bf6450eb17d01cf4be5dcc0cf33f01
parent00ed3da9b5c2e66e796a172df3e19545462b9c90
xics: Eliminate 'reject', 'resend' and 'eoi' class hooks

Currently ics_reject(), ics_resend() and ics_eoi() indirect through
class methods.  But there's only one implementation of each method,
the one in TYPE_ICS_SIMPLE.  TYPE_ICS_BASE has no implementation, but
it's never instantiated, and has no other subtypes.

So clean up by eliminating the method and just having ics_reject(),
ics_resend() and ics_eoi() contain the logic directly.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/intc/trace-events
hw/intc/xics.c
include/hw/ppc/xics.h