From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPtwW-00056y-Lr for qemu-devel@nongnu.org; Sun, 12 Jul 2009 03:57:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPtwV-00055r-IK for qemu-devel@nongnu.org; Sun, 12 Jul 2009 03:57:52 -0400 Received: from [199.232.76.173] (port=40491 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPtwV-00055L-4K for qemu-devel@nongnu.org; Sun, 12 Jul 2009 03:57:51 -0400 Received: from fg-out-1718.google.com ([72.14.220.158]:52317) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MPtwU-0001va-Mo for qemu-devel@nongnu.org; Sun, 12 Jul 2009 03:57:50 -0400 Received: by fg-out-1718.google.com with SMTP id d23so685871fga.8 for ; Sun, 12 Jul 2009 00:57:50 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 12 Jul 2009 10:57:49 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH] tlb flush cleanup From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Kovalenko Cc: qemu-devel@nongnu.org On 7/12/09, Igor Kovalenko wrote: > Use static empty variable s_cputlb_empty_entry to clear entries, > also reset addend member when clearing entries. > This helps running with valgrind/memcheck With this approach, the empty entry could be const. But can't we use memset(x, 0xff, size) for the entries?