diff mbox series

[1/4] tcg: cputlb: Add probe_read

Message ID 20190910095610.4546-2-beata.michalska@linaro.org
State Superseded
Headers show
Series target/arm: Support for Data Cache Clean up to PoP | expand

Commit Message

Beata Michalska Sept. 10, 2019, 9:56 a.m. UTC
Add probe_read alongside the write probing equivalent.

Signed-off-by: Beata Michalska <beata.michalska@linaro.org>

---
 include/exec/exec-all.h | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.17.1

Comments

Alex Bennée Sept. 23, 2019, 11:54 p.m. UTC | #1
Beata Michalska <beata.michalska@linaro.org> writes:

> 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>


> ---

>  include/exec/exec-all.h | 6 ++++++

>  1 file changed, 6 insertions(+)

>

> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h

> index 81b02eb2fe..e1785700c3 100644

> --- a/include/exec/exec-all.h

> +++ b/include/exec/exec-all.h

> @@ -319,6 +319,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.  */



--
Alex Bennée
diff mbox series

Patch

diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
index 81b02eb2fe..e1785700c3 100644
--- a/include/exec/exec-all.h
+++ b/include/exec/exec-all.h
@@ -319,6 +319,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.  */