qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Fix tlb_vaddr_to_host with CONFIG_USER_ONLY


From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH] Fix tlb_vaddr_to_host with CONFIG_USER_ONLY
Date: Thu, 22 Sep 2016 09:51:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1


On 21/09/2016 23:21, Benjamin Herrenschmidt wrote:
> We use the wrong argument name for the g2h() macro !
> 
> The result ends up being something like (target_ulong)(uint64) + guest_base
> which is obviously wrong.
> 
> Signed-off-by: Benjamin Herrenschmidt <address@hidden>

Reviewed-by: Laurent Vivier <address@hidden>
Tested-by; Laurent Vivier <address@hidden>

Your original mail has the R-b from pmaydell, my duplicate patch from
aurel32.

And according to get_maintainer script, maintainers are: pbonzini,
crosthwaite.peter, address@hidden


Thanks,
Laurent

> ---
>  include/exec/cpu_ldst.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/exec/cpu_ldst.h b/include/exec/cpu_ldst.h
> index b573df5..6eb5fe8 100644
> --- a/include/exec/cpu_ldst.h
> +++ b/include/exec/cpu_ldst.h
> @@ -401,7 +401,7 @@ static inline void *tlb_vaddr_to_host(CPUArchState *env, 
> target_ulong addr,
>                                        int access_type, int mmu_idx)
>  {
>  #if defined(CONFIG_USER_ONLY)
> -    return g2h(vaddr);
> +    return g2h(addr);
>  #else
>      int index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
>      CPUTLBEntry *tlbentry = &env->tlb_table[mmu_idx][index];
> 
> 



reply via email to

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