target-s390x: wire up DIAG IPL in TCG mode
commit8df7eef3059394bd53cdf7609aac9a50a78aa030
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 15 Jun 2015 15:57:07 +0000 (15 17:57 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 17 Jun 2015 10:40:50 +0000 (17 12:40 +0200)
tree346f9be7b16eba5e59961069a802bb6de2525e1a
parentcbed0ba78f04ce9e2e718431f64eb4b621288aca
target-s390x: wire up DIAG IPL in TCG mode

DIAG IPL is already implemented for KVM, but not wired from TCG. For
that change the format of the instruction so that we can get R1 and R3
numbers in addition to the function code.

The diag function can change plenty of things, including CC, so we
should enter with a static CC. Also it doesn't set the value of general
register 2 to 0 as in the current code. We also need to exit the CPU
loop after a reset, which means a new PSW.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/helper.h
target-s390x/insn-data.def
target-s390x/misc_helper.c
target-s390x/translate.c