s390x/pci: fix pcistb length
commit704d7a2304d890a570b722e20bd66e5e6303b7d9
authorMatthew Rosato <mjrosato@linux.ibm.com>
Thu, 17 Dec 2020 22:16:36 +0000 (17 17:16 -0500)
committerCornelia Huck <cohuck@redhat.com>
Mon, 21 Dec 2020 17:11:33 +0000 (21 18:11 +0100)
tree26e95c94d7b67d389e3287fc28cfc6ed3abef653
parentd986bc4a1c2de68dbb056b1b761a863dc47313ee
s390x/pci: fix pcistb length

In pcistb_service_call, we are grabbing 8 bits from a guest register to
indicate the length of the store operation -- but per the architecture
the length is actually defined by 13 bits of the guest register.

Fixes: 863f6f52b7 ("s390: implement pci instructions")
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Message-Id: <1608243397-29428-2-git-send-email-mjrosato@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-pci-inst.c