aboutsummaryrefslogtreecommitdiff
path: root/target/s390x/s390x-internal.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2021-09-03 17:55:05 +0200
committerThomas Huth <thuth@redhat.com>2021-09-06 16:24:05 +0200
commiteaa0feea7532429c3a9bec357ec4f77cb156fab0 (patch)
tree4cdb62c716adf06d53b248bda1f6276d3d7f4f19 /target/s390x/s390x-internal.h
parent06d8a10a70b7ef14ebf88b874858f73f2dee1109 (diff)
s390x/tcg: check for addressing exceptions for RRBE, SSKE and ISKE
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> Acked-by: Thomas Huth <thuth@redhat.com> Message-Id: <20210903155514.44772-5-david@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'target/s390x/s390x-internal.h')
-rw-r--r--target/s390x/s390x-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/s390x/s390x-internal.h b/target/s390x/s390x-internal.h
index 5506f185e8..d246d26b04 100644
--- a/target/s390x/s390x-internal.h
+++ b/target/s390x/s390x-internal.h
@@ -373,6 +373,7 @@ void probe_write_access(CPUS390XState *env, uint64_t addr, uint64_t len,
/* mmu_helper.c */
+bool mmu_absolute_addr_valid(target_ulong addr, bool is_write);
int mmu_translate(CPUS390XState *env, target_ulong vaddr, int rw, uint64_t asc,
target_ulong *raddr, int *flags, uint64_t *tec);
int mmu_translate_real(CPUS390XState *env, target_ulong raddr, int rw,