qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC 06/48] tcg: use QHT for helper_table


From: Emilio G. Cota
Subject: Re: [Qemu-devel] [RFC 06/48] tcg: use QHT for helper_table
Date: Wed, 14 Nov 2018 12:52:38 -0500
User-agent: Mutt/1.9.4 (2018-02-28)

On Wed, Nov 14, 2018 at 16:11:35 +0000, Alex Bennée wrote:
> 
> Emilio G. Cota <address@hidden> writes:
(snip)
> I needed to do this:
> 
> modified   tcg/tcg.c
> @@ -884,7 +884,7 @@ static TCGTemp *tcg_global_reg_new_internal(TCGContext 
> *s, TCGType type,
> 
>  static inline uint32_t tcg_helper_func_hash(const void *func)
>  {
> -    return qemu_xxhash2((uint64_t)func);
> +    return qemu_xxhash2((uint64_t)(uintptr_t)func);
>  }
> 
> To prevent the compiler complaining about:
> 
>  tcg.c:887:25: error: cast from pointer to integer of different size 
> [-Werror=pointer-to-int-cast]

Fixed, thanks.

                E.



reply via email to

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