From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJnky-00058c-Dq for qemu-devel@nongnu.org; Thu, 04 Oct 2012 11:54:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJnkd-0001CH-W8 for qemu-devel@nongnu.org; Thu, 04 Oct 2012 11:54:36 -0400 Message-ID: <506DB121.1040606@suse.de> Date: Thu, 04 Oct 2012 17:54:09 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1349265000-23834-1-git-send-email-Bharat.Bhushan@freescale.com> <1349265000-23834-3-git-send-email-Bharat.Bhushan@freescale.com> In-Reply-To: <1349265000-23834-3-git-send-email-Bharat.Bhushan@freescale.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] Adding BAR0 for e500 PCI controller List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bharat Bhushan Cc: Bharat Bhushan , Paolo Bonzini , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, agraf@suse.de Am 03.10.2012 13:50, schrieb Bharat Bhushan: > diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c > index 197411d..c7ae2b6 100644 > --- a/hw/ppc/e500.c > +++ b/hw/ppc/e500.c > @@ -518,6 +518,7 @@ void ppce500_init(PPCE500Params *params) > =20 > /* PCI */ > dev =3D qdev_create(NULL, "e500-pcihost"); > + qdev_prop_set_ptr(dev, "bar0_region", ccsr); > qdev_init_nofail(dev); > s =3D sysbus_from_qdev(dev); > sysbus_connect_irq(s, 0, mpic[pci_irq_nrs[0]]); Please... > diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c > index 92b1dc0..16e4af2 100644 > --- a/hw/ppce500_pci.c > +++ b/hw/ppce500_pci.c > @@ -87,6 +87,7 @@ struct PPCE500PCIState { > /* mmio maps */ > MemoryRegion container; > MemoryRegion iomem; > + void *bar0; > }; > =20 > typedef struct PPCE500PCIState PPCE500PCIState; ...do not do this. qdev_prop_set_ptr() is considered deprecated and we had long discussions how to solve this differently. Was there anything wrong with using a SysBusDevice for the CCSR to encapsulate the MemoryRegion? Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg