Received: from eggs.gnu.org ([140.186.70.92]:50258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPa8c-0003Jr-7c for qemu-devel@nongnu.org; Thu, 26 May 2011 08:58:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPa8b-0006SG-95 for qemu-devel@nongnu.org; Thu, 26 May 2011 08:58:06 -0400 Received: from speedy.comstyle.com ([206.51.28.2]:41045 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPa8b-0006SC-5B for qemu-devel@nongnu.org; Thu, 26 May 2011 08:58:05 -0400 From: Brad References: <20110526030518.GA4978@rox.home.comstyle.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-ID: <1306414680.1458.7.camel@Nokia-N900> Date: Thu, 26 May 2011 08:58:01 -0400 Message-Id: <1306414681.1458.8.camel@Nokia-N900> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/3] Add ppc_init_cacheline_sizes() function for OpenBSD. Reply-To: Brad List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: qemu-devel@nongnu.org ----- Original message ----- > On Wed, 25 May 2011, Brad wrote: >=20 > > Add ppc_init_cacheline_sizes() function for OpenBSD to fix compilatio= n > > of PowerPC host support for OpenBSD/powerpc based architectures. > >=20 > > Signed-off-by: Brad Smith > >=20 > > --- > > cache-utils.c |=C2=A0 =C2=A0 11 +++++++++-- > > 1 files changed, 9 insertions(+), 2 deletions(-) > >=20 > > 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 =3D cacheline; > > } > > } > > -#endif > >=20 > > -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) > > +#elif defined(__OpenBSD__) > > + > > +static void ppc_init_cacheline_sizes(void) > > +{ > > +=C2=A0 =C2=A0 =C2=A0 qemu_cache_conf.dcache_bsize =3D 32; > > +=C2=A0 =C2=A0 =C2=A0 qemu_cache_conf.icache_bsize =3D 32; > > +} > > + > > +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) > > #include > > #include > > #include > >=20 >=20 > 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. --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.