summaryrefslogtreecommitdiffstats
path: root/hw/usb/redirect.c
diff options
context:
space:
mode:
authorGreg Kurz2020-01-07 17:32:46 +0100
committerDavid Gibson2020-01-08 01:54:19 +0100
commitb91cad2f0751ab5c2e1b746a835ec0f45fec1c23 (patch)
treeaf8fd860838b3715524d4bcfcae4634209e990d0 /hw/usb/redirect.c
parentpnv/psi: Add device reset hook (diff)
downloadqemu-b91cad2f0751ab5c2e1b746a835ec0f45fec1c23.tar.gz
qemu-b91cad2f0751ab5c2e1b746a835ec0f45fec1c23.tar.xz
qemu-b91cad2f0751ab5c2e1b746a835ec0f45fec1c23.zip
pnv/psi: Consolidate some duplicated code in pnv_psi_realize()
The proper way to do that would be to use device_class_set_parent_realize(), but defining a Pnv8PsiClass and a Pnv9PsiClass types with a parent_realize pointer adds a fair amount of code. Calling pnv_psi_realize() explicitely is fine for now. This should probably be achieved with a device realize hook in the PSI base class and device_class_set_parent_realize() in the children classes. Signed-off-by: Greg Kurz <groug@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <157841476667.66386.13659183399113837990.stgit@bahia.tlslab.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/usb/redirect.c')
0 files changed, 0 insertions, 0 deletions