From patchwork Sun May 23 20:34:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 53360 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5686CB7D40 for ; Mon, 24 May 2010 06:40:35 +1000 (EST) Received: from localhost ([127.0.0.1]:39714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGHyK-0000HG-CW for incoming@patchwork.ozlabs.org; Sun, 23 May 2010 16:40:32 -0400 Received: from [140.186.70.92] (port=39714 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGHtF-00062m-7s for qemu-devel@nongnu.org; Sun, 23 May 2010 16:35:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGHtD-0007RB-La for qemu-devel@nongnu.org; Sun, 23 May 2010 16:35:16 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:35492) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGHtD-0007Kq-Gu for qemu-devel@nongnu.org; Sun, 23 May 2010 16:35:15 -0400 Received: by mail-pv0-f173.google.com with SMTP id 6so1218984pvg.4 for ; Sun, 23 May 2010 13:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=MM6vPgGGAH42JfCErHwR7LVpF+40HIcszMFDvNStFaU=; b=nS/eOPNVcc9vv/kgEKKc9fC81HMox07d5794LSEZzrlIgsdMedCkvLJf1Qotkm/hQB R5dFoOF9kDc1Ao1PhombZeUVYdA36ZxrXrP8BuM3rpBlD007H4my4jS3G+mh+OtyIloL 8iX0RV3Vn6ZHn+gh98lwc9lDUdkbvqTrZNx3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=RcVoASCtFfaWW0ju69ZeSj53zNT6EGl+7DXZibezNBZJlf+Vz36wTw9IvBCmgoXVIk TEcM2e5TX6Xpdw/1sIKw9Llh+ziF94FvKDFzo5iooxA+sWFNx02vuYesn2H9goa2zYNO Mmc7E2LIwy3jzMbkIfDIk0FgS1Y8mnehRksNc= Received: by 10.140.247.10 with SMTP id u10mr3305271rvh.42.1274646915110; Sun, 23 May 2010 13:35:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.44.12 with HTTP; Sun, 23 May 2010 13:34:55 -0700 (PDT) From: Blue Swirl Date: Sun, 23 May 2010 20:34:55 +0000 Message-ID: To: qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH, RFC 4/4] apb: use IO_MEM_BSWAP with device registration X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Blue Swirl --- hw/apb_pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) static void apb_unregister_mem(void *opaque, pcibus_t addr, pcibus_t size) diff --git a/hw/apb_pci.c b/hw/apb_pci.c index fb23397..cfa198c 100644 --- a/hw/apb_pci.c +++ b/hw/apb_pci.c @@ -323,7 +323,7 @@ static void apb_register_mem(void *opaque, pcibus_t addr, pcibus_t size, int mm) APB_DPRINTF("%s: addr %" FMT_PCIBUS " size %" FMT_PCIBUS "mm %x\n", __func__, addr, size, mm); - cpu_register_physical_memory(addr + d->mem_base, size, mm); + cpu_register_physical_memory(addr + d->mem_base, size, mm | IO_MEM_BSWAP); }