diff options
author | Jason J. Herne | 2014-01-20 20:51:48 +0100 |
---|---|---|
committer | Christian Borntraeger | 2014-01-21 16:20:54 +0100 |
commit | 5f04c14a10fa7f259bc0808f35a0beda49f7821e (patch) | |
tree | a85d941b7126c29691881a05d3811dbff402c324 /hw/s390x/sclp.c | |
parent | SPARC: Fix LEON3 power down instruction (diff) | |
download | qemu-5f04c14a10fa7f259bc0808f35a0beda49f7821e.tar.gz qemu-5f04c14a10fa7f259bc0808f35a0beda49f7821e.tar.xz qemu-5f04c14a10fa7f259bc0808f35a0beda49f7821e.zip |
s390-sclp: Define New SCLP Codes
Define new SCLP codes to improve code readability.
Signed-off-by: Jason J. Herne <jjherne@us.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'hw/s390x/sclp.c')
-rw-r--r-- | hw/s390x/sclp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c index 86d6ae0023..cb035e909b 100644 --- a/hw/s390x/sclp.c +++ b/hw/s390x/sclp.c @@ -45,7 +45,7 @@ static void sclp_execute(SCCB *sccb, uint64_t code) { S390SCLPDevice *sdev = get_event_facility(); - switch (code) { + switch (code & SCLP_CMD_CODE_MASK) { case SCLP_CMDW_READ_SCP_INFO: case SCLP_CMDW_READ_SCP_INFO_FORCED: read_SCP_info(sccb); |