s390x/pci: Check memory region dispatching callbacks
commit88ee13c7b656e5504613b527f3a51591e9afae69
authorPierre Morel <pmorel@linux.vnet.ibm.com>
Wed, 24 Aug 2016 10:53:31 +0000 (24 12:53 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 31 Oct 2016 09:02:09 +0000 (31 10:02 +0100)
tree5d18d4882e42970a09399f77b52c8a68d98a9793
parent45bbcd35d75b5fc893758a2344d2cb9381a60b37
s390x/pci: Check memory region dispatching callbacks

The instructions PCI STORE, PCI LOAD and PCI STORE BLOCK
use calls to memory_region_dispatch_write() and
memory_region_dispatch_read() but do not test the return value.

Furthermore, the instruction PCI STORE BLOCK sets up a PGM_ADDRESSING
exception when the operand 3 is not within the designated PCI address
space instead of a PGM_OPERAND exception.

Let's setup a PGM_OPERAND exception in all of these failure cases.

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-pci-inst.c