s390x/tcg: Fix parts of IEEE exception handling
commitfcb9e9f2a1b229b834e4133f626c4f40b43f7b9d
authorDavid Hildenbrand <david@redhat.com>
Mon, 18 Feb 2019 12:26:59 +0000 (18 13:26 +0100)
committerCornelia Huck <cohuck@redhat.com>
Mon, 4 Mar 2019 10:49:31 +0000 (4 11:49 +0100)
tree7d521bc46381392e495d725f0afd20cc6a30c69d
parent4b70fc54975b3b09eeec30be33419bd03456fe45
s390x/tcg: Fix parts of IEEE exception handling

Many things are wrong and some parts cannot be fixed yet. Fix what we
can fix easily and add two FIXMEs:

The fpc flags are not updated in case an exception is actually injected.
Inexact exceptions have to be handled separately, as they are the only
exceptions that can coexist with underflows and overflows.

I reread the horribly complicated chapters in the PoP at least 5 times
and hope I got it right.

For references:
- z14 PoP, 9-18, "IEEE Exceptions"
- z14 PoP, 19-9, Figure 19-8

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