s390x/tcg: make STFL store into the lowcore
commit86b5ab390992fd57f3a23764994a7e082bcc2fc4
authorDavid Hildenbrand <david@redhat.com>
Wed, 27 Sep 2017 17:00:27 +0000 (27 19:00 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 6 Oct 2017 08:53:02 +0000 (6 10:53 +0200)
tree1570306d38b7d38701b8dd5884f725c6d23fc544
parentf42dc44a1481949e900cd50846a42c60d756758e
s390x/tcg: make STFL store into the lowcore

Using virtual memory access is wrong and will soon include low-address
protection checks, which is to be bypassed for STFL.

STFL is a privileged instruction and using LowCore requires
!CONFIG_USER_ONLY, so add the ifdef and move the declaration to the
right place.

This was originally part of a bigger STFL(E) refactoring.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170927170027.8539-4-david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/helper.h
target/s390x/misc_helper.c