projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c7f8c4
)
tcg: cputlb: Add probe_read
author
Beata Michalska
<beata.michalska@linaro.org>
Thu, 21 Nov 2019 00:08:40 +0000
(
00:08
+0000)
committer
Peter Maydell
<peter.maydell@linaro.org>
Mon, 16 Dec 2019 10:46:35 +0000
(10:46 +0000)
Add probe_read alongside the write probing equivalent.
Signed-off-by: Beata Michalska <beata.michalska@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id:
20191121000843
.24844-2-beata.michalska@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/exec/exec-all.h
patch
|
blob
|
history
diff --git
a/include/exec/exec-all.h
b/include/exec/exec-all.h
index d85e610e85b91a6517ea66689162be74798c7009..350c4b451be807b9f371d6a9df838fa36f3b2cab 100644
(file)
--- a/
include/exec/exec-all.h
+++ b/
include/exec/exec-all.h
@@
-339,6
+339,12
@@
static inline void *probe_write(CPUArchState *env, target_ulong addr, int size,
return probe_access(env, addr, size, MMU_DATA_STORE, mmu_idx, retaddr);
}
+static inline void *probe_read(CPUArchState *env, target_ulong addr, int size,
+ int mmu_idx, uintptr_t retaddr)
+{
+ return probe_access(env, addr, size, MMU_DATA_LOAD, mmu_idx, retaddr);
+}
+
#define CODE_GEN_ALIGN 16 /* must be >= of the size of a icache line */
/* Estimated block size for TB allocation. */