Received: from [140.186.70.92] (port=49569 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9NPg-0000IO-8R for qemu-devel@nongnu.org; Fri, 22 Oct 2010 15:36:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9NPc-0006cl-2U for qemu-devel@nongnu.org; Fri, 22 Oct 2010 15:36:25 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:37213 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P9NPb-0006cT-N1 for qemu-devel@nongnu.org; Fri, 22 Oct 2010 15:36:24 -0400 From: xscript@gmx.net (=?utf-8?Q?Llu=C3=ADs?=) Subject: Re: [Qemu-devel] [PATCH] Refactor flush of per-CPU virtual TB cache References: <878w1qf5cc.fsf@ginnungagap.bsc.es> <20101022185319.GU2806@nightcrawler> Date: Fri, 22 Oct 2010 21:34:34 +0200 In-Reply-To: <20101022185319.GU2806@nightcrawler> (Nathan Froyd's message of "Fri, 22 Oct 2010 14:53:20 -0400") Message-ID: <87vd4u81it.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Nathan Froyd writes: > On Tue, Oct 19, 2010 at 09:57:13PM +0200, Llu=C3=ADs wrote: >> --- a/exec.c >> +++ b/exec.c >> @@ -688,6 +688,11 @@ static void page_flush_tb(void) >> } >> } >>=20 >> +void tb_flush_jmp_cache (CPUState * env) >> +{ >> + memset (env->tb_jmp_cache, 0, TB_JMP_CACHE_SIZE * sizeof (void *)); >> +} >> + > This is only used in this file. Why not make it static? I use it later on the instrumentation set of patches. Which reminds me that I should have defined it as "inline". Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth