qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/4] tcg: cputlb: Add probe_read


From: Alex Bennée
Subject: Re: [Qemu-devel] [PATCH 1/4] tcg: cputlb: Add probe_read
Date: Tue, 24 Sep 2019 00:54:16 +0100
User-agent: mu4e 1.3.4; emacs 27.0.50

Beata Michalska <address@hidden> writes:

> Add probe_read alongside the write probing equivalent.
>
> Signed-off-by: Beata Michalska <address@hidden>

Reviewed-by: Alex Bennée <address@hidden>

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]