From patchwork Thu Aug 25 20:05:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 3682 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D304323F27 for ; Thu, 25 Aug 2011 20:05:16 +0000 (UTC) Received: from mail-gx0-f180.google.com (mail-gx0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 9CD8FA1845B for ; Thu, 25 Aug 2011 20:05:16 +0000 (UTC) Received: by gxk10 with SMTP id 10so2936812gxk.11 for ; Thu, 25 Aug 2011 13:05:16 -0700 (PDT) Received: by 10.150.150.17 with SMTP id x17mr1478880ybd.383.1314302716008; Thu, 25 Aug 2011 13:05:16 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.151.27.20 with SMTP id e20cs253323ybj; Thu, 25 Aug 2011 13:05:15 -0700 (PDT) Received: by 10.216.8.129 with SMTP id 1mr151673wer.38.1314302714080; Thu, 25 Aug 2011 13:05:14 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk [81.2.115.146]) by mx.google.com with ESMTPS id g60si2475135wee.135.2011.08.25.13.05.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Aug 2011 13:05:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1QwgAp-0005LH-Du; Thu, 25 Aug 2011 21:05:11 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Andrzej Zaborowski Subject: [PATCH 07/17] omap_gpmc: Wire up the GPMC IRQ correctly Date: Thu, 25 Aug 2011 21:05:01 +0100 Message-Id: <1314302711-20498-8-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1314302711-20498-1-git-send-email-peter.maydell@linaro.org> References: <1314302711-20498-1-git-send-email-peter.maydell@linaro.org> The omap_gpmc wasn't actually wiring up its IRQ, so anything that provoked an interrupt would be using uninitialised data for its IRQ number. Signed-off-by: Peter Maydell --- hw/omap_gpmc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/omap_gpmc.c b/hw/omap_gpmc.c index ff4d485..b728397 100644 --- a/hw/omap_gpmc.c +++ b/hw/omap_gpmc.c @@ -407,6 +407,7 @@ struct omap_gpmc_s *omap_gpmc_init(target_phys_addr_t base, qemu_irq irq) memory_region_init_io(&s->iomem, &omap_gpmc_ops, s, "omap-gpmc", 0x1000); memory_region_add_subregion(get_system_memory(), base, &s->iomem); + s->irq = irq; omap_gpmc_reset(s); return s;