From patchwork Thu Apr 4 12:58:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 15921 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F0BAD27796 for ; Thu, 4 Apr 2013 12:58:54 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id bv4sf3975448qab.11 for ; Thu, 04 Apr 2013 05:58:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=h1MD/qip+YUwtI3q83YM+G5liQtve2tH/gyfJfmpLaI=; b=l5mOLK630noTYnFvczxJ9PhWkcLw5loU1fq8TB432cfmz+AwdXXHTsY5aWfMX0vjjA Ye9jk8iWLxe4u8fAUN2FUXykDkHzsHo56SiMLfw9R9sDTyrKj2WjQVl6+8cq+kWbG//z s70faAn4f9LyGoyV8dqmuyoLTiEE/ZiObN5BNttUnUSseXPGmhtuU9zpbCS6xc3bm/ES r29pqJubRpxRM/9Tj5RBkSNAKPCuY7cti4DYOZfgm4zAeappERLPRVN3ZrMwrCDncwWN uW0CVPyjYtupsYDW6hp9J4qvoRxEmid1De6JTUS6KGBsFWqNdi9qHvLQVdCuIFC6Kuut wPrw== X-Received: by 10.224.18.132 with SMTP id w4mr3261344qaa.1.1365080329891; Thu, 04 Apr 2013 05:58:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.76 with SMTP id 12ls1353860qec.40.gmail; Thu, 04 Apr 2013 05:58:49 -0700 (PDT) X-Received: by 10.58.224.101 with SMTP id rb5mr4638455vec.17.1365080329697; Thu, 04 Apr 2013 05:58:49 -0700 (PDT) Received: from mail-vb0-x235.google.com (mail-vb0-x235.google.com [2607:f8b0:400c:c02::235]) by mx.google.com with ESMTPS id x3si8128345vdh.3.2013.04.04.05.58.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Apr 2013 05:58:49 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::235 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::235; Received: by mail-vb0-f53.google.com with SMTP id i3so1265694vbh.12 for ; Thu, 04 Apr 2013 05:58:49 -0700 (PDT) X-Received: by 10.52.93.20 with SMTP id cq20mr3927601vdb.38.1365080329596; Thu, 04 Apr 2013 05:58:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.85.136 with SMTP id h8csp214680vez; Thu, 4 Apr 2013 05:58:49 -0700 (PDT) X-Received: by 10.152.105.109 with SMTP id gl13mr3273613lab.40.1365080318353; Thu, 04 Apr 2013 05:58:38 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id o10si3738423lbr.204.2013.04.04.05.58.37 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 04 Apr 2013 05:58:38 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1UNjkP-0005RK-Pk; Thu, 04 Apr 2013 13:58:33 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Arnd Bergmann , "Michael S. Tsirkin" , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Will Deacon , Paul Brook , Aurelien Jarno Subject: [PATCH v3 06/11] versatile_pci: Put the host bridge PCI device at slot 29 Date: Thu, 4 Apr 2013 13:58:28 +0100 Message-Id: <1365080313-20875-7-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1365080313-20875-1-git-send-email-peter.maydell@linaro.org> References: <1365080313-20875-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQmEFit0HgloqZ+A8NLKRNiF4Rny4v2PFflaqAVuIli53Q42h0E2E0o8bUOGS3QP4K9BMaun X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::235 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On real hardware the host bridge appears as a PCI device in slot 29, so make QEMU put its host bridge in that slot too. Signed-off-by: Peter Maydell Acked-by: Paul Brook --- hw/versatile_pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/versatile_pci.c b/hw/versatile_pci.c index 777e9b1..576e619 100644 --- a/hw/versatile_pci.c +++ b/hw/versatile_pci.c @@ -87,6 +87,8 @@ static void pci_vpb_init(Object *obj) object_initialize(&s->pci_dev, TYPE_VERSATILE_PCI_HOST); qdev_set_parent_bus(DEVICE(&s->pci_dev), BUS(&s->pci_bus)); + object_property_set_int(OBJECT(&s->pci_dev), PCI_DEVFN(29, 0), "addr", + NULL); } static void pci_vpb_realize(DeviceState *dev, Error **errp)