s390x/kvm: Fix diagnose handling.
commit638129ff475dd3b4c0e57e0be598efe41461e9b3
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 17 Dec 2013 17:27:33 +0000 (17 18:27 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 18 Dec 2013 13:24:10 +0000 (18 14:24 +0100)
tree11e879fc5f7b5f6c240f1683699bc83a23b06b81
parentf46e720a82ccdf1a521cf459448f3f96ed895d43
s390x/kvm: Fix diagnose handling.

The instruction intercept handler for diagnose used only the displacement
when trying to calculate the function code. This is only correct for base
0, however; we need to perform a complete base/displacement address
calculation and use bits 48-63 as the function code.

Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/cpu.h
target-s390x/kvm.c