From 5eb92ccc3f23f958c0d21bed7c22abe6c1f1adda Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Thu, 26 Sep 2013 16:18:43 +1000 Subject: xics: add cpu_setup callback This adds a cpu_setup callback to the XICS device class (as XICS-KVM will do it different), xics_cpu_setup() will call it if it is set. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Alexander Graf --- include/hw/ppc/xics.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw/ppc') diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h index 7e702a0068..343bba80f8 100644 --- a/include/hw/ppc/xics.h +++ b/include/hw/ppc/xics.h @@ -64,6 +64,7 @@ typedef struct ICSIRQState ICSIRQState; struct XICSStateClass { DeviceClass parent_class; + void (*cpu_setup)(XICSState *icp, PowerPCCPU *cpu); void (*set_nr_irqs)(XICSState *icp, uint32_t nr_irqs, Error **errp); void (*set_nr_servers)(XICSState *icp, uint32_t nr_servers, Error **errp); }; -- cgit v1.2.3