s390x/tcg: Factor out conversion of softfloat exceptions
commit4b70fc54975b3b09eeec30be33419bd03456fe45
authorDavid Hildenbrand <david@redhat.com>
Mon, 18 Feb 2019 12:26:58 +0000 (18 13:26 +0100)
committerCornelia Huck <cohuck@redhat.com>
Mon, 4 Mar 2019 10:49:31 +0000 (4 11:49 +0100)
tree0c2dd361fd72d4ae7c7b3957f010d7c5f3ba5a25
parent3af471f9152b8e84534f8b0ff303b5f0a5ced819
s390x/tcg: Factor out conversion of softfloat exceptions

We want to reuse that function in vector instruction context. While at it,
cleanup the code, using defines for magic values and avoiding the
handcrafted bit conversion.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190218122710.23639-4-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/fpu_helper.c
target/s390x/internal.h