Received: from eggs.gnu.org ([140.186.70.92]:46455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPaPV-0006yD-Jd for qemu-devel@nongnu.org; Thu, 26 May 2011 09:15:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPaPS-00018B-8J for qemu-devel@nongnu.org; Thu, 26 May 2011 09:15:33 -0400 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:52546 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPaPS-00017z-2A for qemu-devel@nongnu.org; Thu, 26 May 2011 09:15:30 -0400 Date: Thu, 26 May 2011 17:15:26 +0400 (MSD) From: malc In-Reply-To: <1306414681.1458.8.camel@Nokia-N900> Message-ID: References: <20110526030518.GA4978@rox.home.comstyle.com> <1306414681.1458.8.camel@Nokia-N900> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="33734824-1937500189-1306415726=:1988" Subject: Re: [Qemu-devel] [PATCH 1/3] Add ppc_init_cacheline_sizes() function for OpenBSD. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Brad Cc: qemu-devel@nongnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --33734824-1937500189-1306415726=:1988 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: 8BIT On Thu, 26 May 2011, Brad wrote: > ----- Original message ----- > > On Wed, 25 May 2011, Brad wrote: > > > > > Add ppc_init_cacheline_sizes() function for OpenBSD to fix compilation > > > of PowerPC host support for OpenBSD/powerpc based architectures. > > > > > > Signed-off-by: Brad Smith > > > > > > --- > > > cache-utils.c |    11 +++++++++-- > > > 1 files changed, 9 insertions(+), 2 deletions(-) > > > > > > diff --git a/cache-utils.c b/cache-utils.c > > > index 2db5af2..c319705 100644 > > > --- a/cache-utils.c > > > +++ b/cache-utils.c > > > @@ -55,9 +55,16 @@ static void ppc_init_cacheline_sizes(void) > > > qemu_cache_conf.icache_bsize = cacheline; > > > } > > > } > > > -#endif > > > > > > -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) > > > +#elif defined(__OpenBSD__) > > > + > > > +static void ppc_init_cacheline_sizes(void) > > > +{ > > > +      qemu_cache_conf.dcache_bsize = 32; > > > +      qemu_cache_conf.icache_bsize = 32; > > > +} > > > + > > > +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) > > > #include > > > #include > > > #include > > > > > > > This can't be right for most ppc64's. > > Well this is what OpenBSD currently does and runs on G5's in 32-bit mode only. > Mode of operation does not, to the best of my knowledge, change the hardware limits, the cache line size will still be 128 on those G5s. -- mailto:av1474@comtv.ru --33734824-1937500189-1306415726=:1988--