From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41157 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9Mk7-0005CG-WC for qemu-devel@nongnu.org; Fri, 22 Oct 2010 14:53:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9Mk6-0004N0-Ux for qemu-devel@nongnu.org; Fri, 22 Oct 2010 14:53:31 -0400 Received: from mail.codesourcery.com ([38.113.113.100]:42446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9Mk6-0004KM-NG for qemu-devel@nongnu.org; Fri, 22 Oct 2010 14:53:30 -0400 Date: Fri, 22 Oct 2010 14:53:20 -0400 From: Nathan Froyd Subject: Re: [Qemu-devel] [PATCH] Refactor flush of per-CPU virtual TB cache Message-ID: <20101022185319.GU2806@nightcrawler> References: <878w1qf5cc.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878w1qf5cc.fsf@ginnungagap.bsc.es> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Llu=EDs?= Cc: qemu-devel@nongnu.org On Tue, Oct 19, 2010 at 09:57:13PM +0200, Lluís wrote: > --- a/exec.c > +++ b/exec.c > @@ -688,6 +688,11 @@ static void page_flush_tb(void) > } > } > > +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? -Nathan