From patchwork Sat May 30 07:54:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 49254 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C9B224588 for ; Sat, 30 May 2015 07:59:34 +0000 (UTC) Received: by wifx6 with SMTP id x6sf11924202wif.1 for ; Sat, 30 May 2015 00:59:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:content-type: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=LRgSRsztkpiEy3VY7vkq7PvN7Rt3AEeT87Ea7z73Y8k=; b=VkzQ0U47yAMZA4vQ+03H0AGDqN4GMB4Py//cEpOwTynuX8+NR3JByDPWAAiFCpOH1j FpU+Kgle4oiwrYV0AdCknzVmVYTX97Hsb/kBqx7ATe3yql/Vo12fX5SYNerhY6hu+ACG iHkSFnheT7bke2DDdFdAk+sK3nWRFgVharnJjeevp9ff7pCuvdyt4f+zp+V0Tazb7JAK PQ6DJt4aT+l2VUzpheC5xfEVso264np+UaEzwVQEd19wwRHGJxpeYyOHJkxVIHwr1sP3 Lb59SALZlftBqOxNJE1lo7A+ZvlG8hE44Ys1tqfiBd+/84k+ZN/+aMuoaSR/XdMBxsi6 8M2Q== X-Gm-Message-State: ALoCoQlPtIoKcTqXUD/zs5LQJxrRkEhFL4aMyS78iwmgkAIkzS+EvgZASD7YKd+b3iOMwTPBLXML X-Received: by 10.112.28.111 with SMTP id a15mr10768406lbh.21.1432972773539; Sat, 30 May 2015 00:59:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.135 with SMTP id r7ls416174laa.36.gmail; Sat, 30 May 2015 00:59:33 -0700 (PDT) X-Received: by 10.152.120.135 with SMTP id lc7mr1914652lab.107.1432972773285; Sat, 30 May 2015 00:59:33 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id c20si6754624lbo.140.2015.05.30.00.59.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 May 2015 00:59:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbcue7 with SMTP id ue7so60618421lbc.0 for ; Sat, 30 May 2015 00:59:32 -0700 (PDT) X-Received: by 10.152.29.161 with SMTP id l1mr11675889lah.76.1432972772863; Sat, 30 May 2015 00:59:32 -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.108.230 with SMTP id hn6csp888289lbb; Sat, 30 May 2015 00:59:32 -0700 (PDT) X-Received: by 10.55.19.197 with SMTP id 66mr23527501qkt.24.1432972771633; Sat, 30 May 2015 00:59:31 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m70si8037019qhb.89.2015.05.30.00.59.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 30 May 2015 00:59:31 -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]:38649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yybg2-0003Bg-Uk for patch@linaro.org; Sat, 30 May 2015 03:59:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YybfE-00022C-Mw for qemu-devel@nongnu.org; Sat, 30 May 2015 03:58:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YybfD-0000ZF-OF for qemu-devel@nongnu.org; Sat, 30 May 2015 03:58:40 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:28728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yybf7-0000XF-NS; Sat, 30 May 2015 03:58:34 -0400 Received: from 172.24.2.119 (EHLO szxeml431-hub.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id BGU05479; Sat, 30 May 2015 15:55:11 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml431-hub.china.huawei.com (10.82.67.208) with Microsoft SMTP Server id 14.3.158.1; Sat, 30 May 2015 15:55:00 +0800 From: Shannon Zhao To: Date: Sat, 30 May 2015 15:54:33 +0800 Message-ID: <1432972477-13504-4-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1432972477-13504-1-git-send-email-zhaoshenglong@huawei.com> References: <1432972477-13504-1-git-send-email-zhaoshenglong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.177.16.142] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.55696CDF.0100, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 2856329b4f544d166ab7bd51402bd8e6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 119.145.14.66 Cc: qemu-trivial@nongnu.org, peter.maydell@linaro.org, mjt@tls.msk.ru, shannon.zhao@linaro.org Subject: [Qemu-devel] [PATCH v2 3/7] hw/m68k/an5206.c: Store irq array in MachineState to fix memory leak X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-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: patch@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.178 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 From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/m68k/an5206.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/m68k/an5206.c b/hw/m68k/an5206.c index f63ab2b..6ebf2d2 100644 --- a/hw/m68k/an5206.c +++ b/hw/m68k/an5206.c @@ -58,7 +58,7 @@ static void an5206_init(MachineState *machine) vmstate_register_ram_global(sram); memory_region_add_subregion(address_space_mem, AN5206_RAMBAR_ADDR, sram); - mcf5206_init(address_space_mem, AN5206_MBAR_ADDR, cpu); + machine->irqs = mcf5206_init(address_space_mem, AN5206_MBAR_ADDR, cpu); /* Load kernel. */ if (!kernel_filename) {