summaryrefslogtreecommitdiffstats
path: root/hw/s390x/sclp.c
diff options
context:
space:
mode:
authorYi Min Zhao2016-04-28 06:33:53 +0200
committerCornelia Huck2016-05-17 15:50:29 +0200
commit8f5cb69313acac264201289c08f255f0ddac71a4 (patch)
treecce55793cd7052805523b4e3ba3791d4693800b4 /hw/s390x/sclp.c
parents390x/pci: fix reg_irqs() (diff)
downloadqemu-8f5cb69313acac264201289c08f255f0ddac71a4.tar.gz
qemu-8f5cb69313acac264201289c08f255f0ddac71a4.tar.xz
qemu-8f5cb69313acac264201289c08f255f0ddac71a4.zip
s390x/pci: separate s390_sclp_configure function
Split s390_sclp_configure() into separate functions for sclp configuring and deconfiguring in order to make the code more readable. Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x/sclp.c')
-rw-r--r--hw/s390x/sclp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c
index 85dbe1b600..fca37f511e 100644
--- a/hw/s390x/sclp.c
+++ b/hw/s390x/sclp.c
@@ -357,10 +357,10 @@ static void sclp_execute(SCLPDevice *sclp, SCCB *sccb, uint32_t code)
sclp_c->unassign_storage(sclp, sccb);
break;
case SCLP_CMDW_CONFIGURE_PCI:
- s390_pci_sclp_configure(1, sccb);
+ s390_pci_sclp_configure(sccb);
break;
case SCLP_CMDW_DECONFIGURE_PCI:
- s390_pci_sclp_configure(0, sccb);
+ s390_pci_sclp_deconfigure(sccb);
break;
default:
efc->command_handler(ef, sccb, code);