s390x/kvm: fix and cleanup storing CPU status
commit947a38bd6f1301a97f3c9c7485e7fa118bbc40cf
authorDavid Hildenbrand <david@redhat.com>
Fri, 22 Sep 2017 14:03:38 +0000 (22 16:03 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 6 Oct 2017 08:53:01 +0000 (6 10:53 +0200)
tree7f1ffe15b26a7787429a83bf8d07144160eb71f4
parentb6805e127c6b7815ea3abc6516b461a18d9c4d3d
s390x/kvm: fix and cleanup storing CPU status

env->psa is a 64bit value, while we copy 4 bytes into the save area,
resulting always in 0 getting stored.

Let's try to reduce such errors by using a proper structure. While at
it, use correct cpu->be conversion (and get_psw_mask()), as we will be
reusing this code for TCG soon.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170922140338.6068-1-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/kvm.c