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: Richard Henderson
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 08:08:33 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

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.


r~



reply via email to

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