Let's replace the ram_size check by a proper physical address space
check (for example, to prepare for memory hotplug), trigger addressing
exceptions and trace the return value of the storage key getter/setter.
Provide an helper mmu_absolute_addr_valid() to be used in other context
soon. Always test for "read" instead of "write" as we are not actually
modifying the page itself.
Signed-off-by: David Hildenbrand <david@redhat.com>
---
target/s390x/helper.h | 6 +++---
target/s390x/mmu_helper.c | 8 ++++++++
target/s390x/s390x-internal.h | 1 +
target/s390x/tcg/mem_helper.c | 36 ++++++++++++++++++++++-------------
4 files changed, 35 insertions(+), 16 deletions(-)