xics: Eliminate reset hook
commitda2ef5b2f24be70d4fa0b05fd6799031cd3a456e
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 24 Sep 2019 04:19:22 +0000 (24 14:19 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 09:08:22 +0000 (4 19:08 +1000)
tree958f37282b5e2b1fb4a398e66e72052fdd7fa5f1
parent28976c99cfa59e1880a86a59af20099eba62f5e7
xics: Eliminate reset hook

Currently TYPE_XICS_BASE and TYPE_XICS_SIMPLE have their own reset methods,
using the standard technique for having the subtype call the supertype's
methods before doing its own thing.

But TYPE_XICS_SIMPLE is the only subtype of TYPE_XICS_BASE ever
instantiated, so there's no point having the split here.  Merge them
together into just an ics_reset() function.

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/xics.c
include/hw/ppc/xics.h