s390x/tcg: add various alignment checks
commit21fc97c5fff10433d839047da44eee652f050041
authorDavid Hildenbrand <david@redhat.com>
Thu, 15 Feb 2018 10:38:22 +0000 (15 11:38 +0100)
committerCornelia Huck <cohuck@redhat.com>
Mon, 26 Feb 2018 11:55:26 +0000 (26 12:55 +0100)
tree0d1afe20f6540901a542d7ded5cf2161a4cbf3f0
parentf26852aa31d49bf83a8defd65538137a2f9da82c
s390x/tcg: add various alignment checks

Let's add proper alignment checks for a handful of instructions that
require a SPECIFICATION exception in case alignment is violated.

Introduce new wout/in functions. As we are right now only using them for
privileged instructions, we have to add ugly ifdefs to silence
compilers.

Convert STORE CPU ID right away to make use of the wout function.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180215103822.15179-1-david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/insn-data.def
target/s390x/mem_helper.c
target/s390x/translate.c