From b1c7f725a3bc5fec87912e907066edd6b80b878c Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 12 Apr 2012 12:44:13 +1000 Subject: pseries: Correctly use the device model reset hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Recently we added code to properly clean away VIO CRQs on reset However, this directly uses qemu_register, rather than the existing device model reset callbacks. This patch cleans this up by adding proper use of the reset hook to the VIO bus model. The existing CRQ reset code is converted to the new method. Signed-off-by: David Gibson Signed-off-by: Andreas Färber --- hw/spapr_vio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/spapr_vio.h') diff --git a/hw/spapr_vio.h b/hw/spapr_vio.h index 626d04f..10ab359 100644 --- a/hw/spapr_vio.h +++ b/hw/spapr_vio.h @@ -64,6 +64,7 @@ typedef struct VIOsPAPRDeviceClass { const char *dt_name, *dt_type, *dt_compatible; target_ulong signal_mask; int (*init)(VIOsPAPRDevice *dev); + void (*reset)(VIOsPAPRDevice *dev); int (*devnode)(VIOsPAPRDevice *dev, void *fdt, int node_off); } VIOsPAPRDeviceClass; -- cgit v1.1