summaryrefslogtreecommitdiffstats
path: root/hw/s390x/sclp.c
diff options
context:
space:
mode:
authorJason J. Herne2014-01-20 20:51:48 +0100
committerChristian Borntraeger2014-01-21 16:20:54 +0100
commit5f04c14a10fa7f259bc0808f35a0beda49f7821e (patch)
treea85d941b7126c29691881a05d3811dbff402c324 /hw/s390x/sclp.c
parentSPARC: Fix LEON3 power down instruction (diff)
downloadqemu-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.c2
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);