qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v5 4/7] exec: [tcg] Use different TBs according


From: Lluís Vilanova
Subject: Re: [Qemu-devel] [PATCH v5 4/7] exec: [tcg] Use different TBs according to the vCPU's dynamic tracing state
Date: Wed, 28 Dec 2016 17:23:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Richard Henderson writes:

> On 12/28/2016 06:08 AM, Lluís Vilanova wrote:
>> @@ -83,6 +85,13 @@ uint32_t tb_hash_func5(uint64_t a0, uint64_t b0, uint32_t 
>> e)
>> h32 += e * PRIME32_3;
>> h32  = rol32(h32, 17) * PRIME32_4;
>> 
>> +    if (sizeof(TRACE_QHT_VCPU_DSTATE_TYPE) == sizeof(uint32_t)) {
>> +        h32 += f * PRIME32_3;
>> +        h32  = rol32(h32, 17) * PRIME32_4;
>> +    } else {
>> +        abort();
>> +    }
>> +

> QEMU_BUILD_BUG_ON.

Right, thanks.

Lluis



reply via email to

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