From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RArgt-0000GQ-Tm for qemu-devel@nongnu.org; Mon, 03 Oct 2011 19:12:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RArgs-0006UZ-Tf for qemu-devel@nongnu.org; Mon, 03 Oct 2011 19:12:55 -0400 Date: Tue, 4 Oct 2011 03:12:43 +0400 (MSD) From: malc In-Reply-To: <1317674600-19083-3-git-send-email-sw@weilnetz.de> Message-ID: References: <1317674600-19083-1-git-send-email-sw@weilnetz.de> <1317674600-19083-3-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH 2/2] tcg/ppc*: Move cache initialization to ppc specific code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-ppc@nongnu.org, QEMU Developers , Alexander Graf On Mon, 3 Oct 2011, Stefan Weil wrote: > qemu_cache_utils_init() is only used by ppc / ppc64 tcg targets > to initialize the cache before flush_icache_range() is called. > > This patch moves the code to tcg/ppc and tcg/ppc64. > Initialisation is called from tcg_target_init() there. > This can't possibly work, since ... [..snip..] > static void tcg_target_init(TCGContext *s) > { > +#ifdef __linux__ > + ppc_init_cacheline_sizes(envp); > +#else envp is not passed to the enclosing function. > + ppc_init_cacheline_sizes(); > +#endif > + > tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff); > tcg_regset_set32(tcg_target_call_clobber_regs, 0, > (1 << TCG_REG_R0) | [..snip..] -- mailto:av1474@comtv.ru