From b1fd36c363d73969841468146ebfb9fd84a5ee52 Mon Sep 17 00:00:00 2001 From: Greg Kurz Date: Thu, 8 Jun 2017 15:43:08 +0200 Subject: xics: drop ICPStateClass::cpu_setup() handler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cpu_setup() handler is only implemented by xics_kvm, where it really does a typical "realize" job. Moreover, the realize() handler is called shortly after cpu_setup(), on the same path. This patch converts xics_kvm to implement realize() instead of cpu_setup(). Signed-off-by: Greg Kurz Reviewed-by: Cédric Le Goater Signed-off-by: David Gibson --- hw/intc/xics.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hw/intc/xics.c') diff --git a/hw/intc/xics.c b/hw/intc/xics.c index fdbfddf..7ccfb53 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -324,10 +324,6 @@ static void icp_realize(DeviceState *dev, Error **errp) cpu->intc = OBJECT(icp); icp->cs = CPU(obj); - if (icpc->cpu_setup) { - icpc->cpu_setup(icp, cpu); - } - env = &cpu->env; switch (PPC_INPUT(env)) { case PPC_FLAGS_INPUT_POWER7: -- cgit v1.1