From patchwork Thu May 26 03:05:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Smith X-Patchwork-Id: 97487 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9F57EB6F98 for ; Thu, 26 May 2011 13:05:34 +1000 (EST) Received: from localhost ([::1]:40412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPQt9-0000ZY-5B for incoming@patchwork.ozlabs.org; Wed, 25 May 2011 23:05:31 -0400 Received: from eggs.gnu.org ([140.186.70.92]:52798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPQt3-0000ZP-8R for qemu-devel@nongnu.org; Wed, 25 May 2011 23:05:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPQt2-0000pD-8j for qemu-devel@nongnu.org; Wed, 25 May 2011 23:05:25 -0400 Received: from speedy.comstyle.com ([206.51.28.2]:9061 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPQt2-0000p5-6H for qemu-devel@nongnu.org; Wed, 25 May 2011 23:05:24 -0400 Received: from rox.home.comstyle.com (rox.home.comstyle.com [IPv6:2001:470:b01e:3:ca0a:a9ff:fe93:42c9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id A43CA984B8 for ; Wed, 25 May 2011 23:05:20 -0400 (EDT) Date: Wed, 25 May 2011 23:05:19 -0400 From: Brad To: qemu-devel@nongnu.org Message-ID: <20110526030518.GA4978@rox.home.comstyle.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-comstyle-MailScanner-Information: Please contact the ISP for more information X-comstyle-MailScanner-ID: A43CA984B8.A2653 X-comstyle-MailScanner: Found to be clean X-comstyle-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-2.9, required 6, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-comstyle-MailScanner-From: brad@comstyle.com X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.51.28.2 Subject: [Qemu-devel] [PATCH 1/3] Add ppc_init_cacheline_sizes() function for OpenBSD. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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