Message ID | 1430394771-19617-3-git-send-email-pranavkumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCXN5GN43IDBB55PRCVAKGQE5FTKUKA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 837F52121F for <linaro@patches.linaro.org>; Thu, 30 Apr 2015 11:54:32 +0000 (UTC) Received: by wiun10 with SMTP id n10sf3918765wiu.1 for <linaro@patches.linaro.org>; Thu, 30 Apr 2015 04:54:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=qYsdJiNkCI5bZeqzdzU3LadgMGB6cvO3T9T/a59Qm5U=; b=DFByDP8+VcvutYiBc/zl6yNBu+kxigL7vOjTlT1JXnaMErWvBhaZ0OHIVFIPKR/h6R DW9xkqaJfs4h6yqINUSkFVoxPOMXdh1yJyvEtpDdSfrJpuWpcqezn+Q13f7sKHq44pHA o3f2dJwoesOOjdvho20tlOKTX5x8pFBFzdfMlKH1yY/ctJfvVrxqtmJdplhe22Zyi+hY S2i1/qeof2pPiAa6/BvxQ0VcHdCczESYpI8muOUGhnx/Wbi74Efj53uwwBiKjYN7h4bK yX6NqPwSpt1cB3fFB1ov1KgKRfZH6LSSwN4Vfs+N2ab1NcxOpZNFXmwdbITnFENH1ZL8 Etrw== X-Gm-Message-State: ALoCoQmQLG9qC4dxMDQyaP4lMnK/CJfAyG8XXIeBTy1OyQH0ODgAQVGdg/GiWit6emKSZqYPQdpI X-Received: by 10.112.160.197 with SMTP id xm5mr2318225lbb.15.1430394871762; Thu, 30 Apr 2015 04:54:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.2 with SMTP id f2ls10687laa.103.gmail; Thu, 30 Apr 2015 04:54:31 -0700 (PDT) X-Received: by 10.152.2.38 with SMTP id 6mr3576577lar.80.1430394871617; Thu, 30 Apr 2015 04:54:31 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id g10si1607896lam.78.2015.04.30.04.54.31 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 04:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbqq2 with SMTP id qq2so42396294lbb.3 for <patchwork-forward@linaro.org>; Thu, 30 Apr 2015 04:54:31 -0700 (PDT) X-Received: by 10.112.140.231 with SMTP id rj7mr3440579lbb.76.1430394871346; Thu, 30 Apr 2015 04:54:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp3063898lbt; Thu, 30 Apr 2015 04:54:30 -0700 (PDT) X-Received: by 10.140.151.15 with SMTP id 15mr3887435qhx.104.1430394870121; Thu, 30 Apr 2015 04:54:30 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id b8si1517763qcn.33.2015.04.30.04.54.29 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 Apr 2015 04:54:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:43165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1Ynn2y-0001ih-Vq for patch@linaro.org; Thu, 30 Apr 2015 07:54:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pranavkumar@linaro.org>) id 1Ynn2P-00019H-Pc for qemu-devel@nongnu.org; Thu, 30 Apr 2015 07:53:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <pranavkumar@linaro.org>) id 1Ynn2K-0002Mm-Ka for qemu-devel@nongnu.org; Thu, 30 Apr 2015 07:53:53 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <pranavkumar@linaro.org>) id 1Ynn2K-0002Mi-FU for qemu-devel@nongnu.org; Thu, 30 Apr 2015 07:53:48 -0400 Received: by pabsx10 with SMTP id sx10so57579106pab.3 for <qemu-devel@nongnu.org>; Thu, 30 Apr 2015 04:53:47 -0700 (PDT) X-Received: by 10.69.25.41 with SMTP id in9mr7574388pbd.80.1430394827582; Thu, 30 Apr 2015 04:53:47 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id jg3sm2003120pbb.72.2015.04.30.04.53.42 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Apr 2015 04:53:46 -0700 (PDT) From: Pranavkumar Sawargaonkar <pranavkumar@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 30 Apr 2015 17:22:50 +0530 Message-Id: <1430394771-19617-3-git-send-email-pranavkumar@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1430394771-19617-1-git-send-email-pranavkumar@linaro.org> References: <1430394771-19617-1-git-send-email-pranavkumar@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.50 Cc: peter.maydell@linaro.org, patches@apm.com, agraf@suse.de, christoffer.dall@linaro.org, Tushar Jagad <tushar.jagad@linaro.org>, Pranavkumar Sawargaonkar <pranavkumar@linaro.org> Subject: [Qemu-devel] [v2 2/2] arm: hw: virt: Store information about GPEX legacy interrupt numbers X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pranavkumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 565f573..fdafdcc 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -658,6 +658,7 @@ static void create_pcie(const VirtBoardInfo *vbi, qemu_irq *pic, MemoryRegion *ecam_alias; MemoryRegion *ecam_reg; DeviceState *dev; + GPEXHost *s; char *nodename; int i; @@ -689,8 +690,11 @@ static void create_pcie(const VirtBoardInfo *vbi, qemu_irq *pic, /* Map IO port space */ sysbus_mmio_map(SYS_BUS_DEVICE(dev), 2, base_ioport); + s = GPEX_HOST(dev); + for (i = 0; i < GPEX_NUM_IRQS; i++) { sysbus_connect_irq(SYS_BUS_DEVICE(dev), i, pic[irq + i]); + s->irq_num[i] = irq + i; } nodename = g_strdup_printf("/pcie@%" PRIx64, base);