summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorDavid Hildenbrand2019-08-30 12:09:59 +0200
committerRichard Henderson2019-09-03 17:34:18 +0200
commitc25c283df0f08582df29f1d5d7be1516b851532d (patch)
treea97749340e002d6831e6a56051f399c95f85410d /include/exec
parenttcg: Make probe_write() return a pointer to the host page (diff)
downloadqemu-c25c283df0f08582df29f1d5d7be1516b851532d.tar.gz
qemu-c25c283df0f08582df29f1d5d7be1516b851532d.tar.xz
qemu-c25c283df0f08582df29f1d5d7be1516b851532d.zip
tcg: Factor out probe_write() logic into probe_access()
Let's also allow to probe other access types. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20190830100959.26615-3-david@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/exec-all.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
index a7893ed16b..81b02eb2fe 100644
--- a/include/exec/exec-all.h
+++ b/include/exec/exec-all.h
@@ -310,8 +310,14 @@ static inline void tlb_flush_by_mmuidx_all_cpus_synced(CPUState *cpu,
{
}
#endif
-void *probe_write(CPUArchState *env, target_ulong addr, int size, int mmu_idx,
- uintptr_t retaddr);
+void *probe_access(CPUArchState *env, target_ulong addr, int size,
+ MMUAccessType access_type, int mmu_idx, uintptr_t retaddr);
+
+static inline void *probe_write(CPUArchState *env, target_ulong addr, int size,
+ int mmu_idx, uintptr_t retaddr)
+{
+ return probe_access(env, addr, size, MMU_DATA_STORE, mmu_idx, retaddr);
+}
#define CODE_GEN_ALIGN 16 /* must be >= of the size of a icache line */