s390x/ioinst: Rework memory access in TSCH instruction
commitb7b6348ab433519f16c1500e3ea04805428be91e
authorThomas Huth <thuth@linux.vnet.ibm.com>
Thu, 12 Feb 2015 17:09:37 +0000 (12 18:09 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 18 Feb 2015 08:37:15 +0000 (18 09:37 +0100)
tree5c74614a02a6870cd4a5b646f5426344e9365ef3
parent653b080960578c25ed88f7e6c5b7ec65d4fe1648
s390x/ioinst: Rework memory access in TSCH instruction

Change the TSCH handler to use the new logical memory access functions.
Since the channel should not be updated in case of a protection or access
exception while writing to the guest memory, the css_do_tsch() has to be
split up into two parts, one for retrieving the IRB and one for the update.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/s390x/css.c
target-s390x/cpu.h
target-s390x/ioinst.c