]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
s390x/kvm: Fix diagnose handling.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 17 Dec 2013 17:27:33 +0000 (18:27 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 06:34:40 +0000 (00:34 -0600)
commitc2f6dc66bcdee73cc7fd14fd82f570ccce382a1f
tree1473899b684aa017d78a1c403832a8ca49537165
parentdc9e1e798c9a967727d100da2f082e8f456c60fa
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>
(cherry picked from commit 638129ff475dd3b4c0e57e0be598efe41461e9b3)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-s390x/cpu.h
target-s390x/kvm.c