From patchwork Sat Apr 6 15:44:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 15946 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-gg0-f198.google.com (mail-gg0-f198.google.com [209.85.161.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 924DF2774F for ; Sat, 6 Apr 2013 15:44:55 +0000 (UTC) Received: by mail-gg0-f198.google.com with SMTP id a5sf6058006ggn.5 for ; Sat, 06 Apr 2013 08:44:45 -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=ummDz+ZjPm0Vm60bvaddzIlfZ3Z+4LYStwzTiw4dTvQ=; b=TX6fKmgTk6Nt5xKqXBI7d0KdmG8SUwls0bJPjvmqcJkyT8yhtbq7deFcWpSbZ2Jq+i SFe1hW5AFfc875whyvVKS3WNjKNaM/MtkVxsKW7VEfS2cD7y7N09X3XAvsRJtNatzBBb HteOZsPVD+sGUJreIS1jiQObTtjlpxsDoRK1AYnHonHwhJ9vrX9h5XACnDZ/hL7Kejlm eQn6iLfFLJKb7Q6sOOa6MYM/4Tz+hCCrTfUW1H+ARrcy+m1pP8GhDdEqyDbnc8jCOrft bPRDfzJGhZumTx/AeAl5De2iTkbaTXaLUJrrGKZpdOUXOezf1wD/uvhOp32CB1bhrWHL L83w== X-Received: by 10.224.219.146 with SMTP id hu18mr1483635qab.3.1365263085289; Sat, 06 Apr 2013 08:44:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.244 with SMTP id 20ls2452348qeh.77.gmail; Sat, 06 Apr 2013 08:44:45 -0700 (PDT) X-Received: by 10.58.168.208 with SMTP id zy16mr11377770veb.3.1365263085157; Sat, 06 Apr 2013 08:44:45 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id sx2si13842396vdc.32.2013.04.06.08.44.45 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 06 Apr 2013 08:44:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id hz11so3927011vcb.37 for ; Sat, 06 Apr 2013 08:44:45 -0700 (PDT) X-Received: by 10.220.214.6 with SMTP id gy6mr11194616vcb.8.1365263085013; Sat, 06 Apr 2013 08:44:45 -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 h8csp296683vez; Sat, 6 Apr 2013 08:44:44 -0700 (PDT) X-Received: by 10.15.76.132 with SMTP id n4mr11004748eey.16.1365263082366; Sat, 06 Apr 2013 08:44:42 -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 i41si8267377eeo.222.2013.04.06.08.44.41 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 06 Apr 2013 08:44:42 -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 1UOVID-0004PM-44; Sat, 06 Apr 2013 16:44:37 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , "Michael S. Tsirkin" , Paul Brook , Arnd Bergmann , Will Deacon Subject: [PATCH v4 06/11] versatile_pci: Put the host bridge PCI device at slot 29 Date: Sat, 6 Apr 2013 16:44:31 +0100 Message-Id: <1365263076-16909-7-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1365263076-16909-1-git-send-email-peter.maydell@linaro.org> References: <1365263076-16909-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQkBxlFhtIneEoefm/3Vczea8IJJRGVu+X4a+sb9chXOBt3TvNeA+KL/yK4kjjK1E4JOMELT X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 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 ce5bdf2..8f8612c 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)