s390x/tcg: add MMU for real addresses
commitfb66944df92f4cf28b6f66232f82b9dd46ddcdb2
authorDavid Hildenbrand <david@redhat.com>
Tue, 26 Sep 2017 18:33:14 +0000 (26 20:33 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 6 Oct 2017 08:53:02 +0000 (6 10:53 +0200)
tree3fe9b7de69a395e979920daa85742a28c50e5ca8
parent0bd695a960bf05f27ad6d710d2b64059037574ce
s390x/tcg: add MMU for real addresses

This makes it easy to access real addresses (prefix) and in addition
checks for valid memory addresses, which is missing when using e.g.
stl_phys().

We can later reuse it to implement low address protection checks (then
we might even decide to introduce yet another MMU for absolute
addresses, just for handling storage keys and low address protection).

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170926183318.12995-3-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/cpu.h
target/s390x/excp_helper.c
target/s390x/internal.h
target/s390x/mmu_helper.c