s390x/tcg: Save vregs to extended mchk save area
commit9693379ba25631422709c09b48bfbbedfb602bae
authorDavid Hildenbrand <david@redhat.com>
Fri, 22 Feb 2019 08:11:53 +0000 (22 09:11 +0100)
committerCornelia Huck <cohuck@redhat.com>
Mon, 4 Mar 2019 10:49:31 +0000 (4 11:49 +0100)
treeef5f1d43a9a2e78b232acb19f6006f313969068e
parent257619be4243d9b7f12b619027d9a5c2f2270350
s390x/tcg: Save vregs to extended mchk save area

If we have vector registers and the designation is not zero, we have
to try to write the vector registers. If the designation is zero or
if storing fails, we must not indicate validity. s390_build_validity_mcic()
automatically already sets validity if the vector instruction facility
is installed.

As long as we don't support the guarded-storage facility, the alignment
and size of the area is always 1024 bytes.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190222081153.14206-4-david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/excp_helper.c
target/s390x/internal.h