From patchwork Wed Jun 17 02:59:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 49969 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C7FFB205DE for ; Wed, 17 Jun 2015 03:03:28 +0000 (UTC) Received: by wgez8 with SMTP id z8sf8734566wge.2 for ; Tue, 16 Jun 2015 20:03:28 -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=wkFAsmRPWyXZeIIoLdDWCudLHRLCU42ZnGUHU0pL9xM=; b=cfD/T3L6bTfrfrDaSgEUnr7i6irT51ZKOmKl4eipVqY6/2AlXVS+ORHCd0yjIoeTaK Ut4kPIxYiK5VymoQ2GGBZJc7J6FlPgiefGxvREUqkgda3XgG8pri088i66RoZMO1rLVb 2SHSeDapeyd6y9tNTTbhbj1OXZFYgOrBuKiVApmOpGIKwxmRZJNMKpuTJ8cPeEOfio1F Oy9KeT+6lz/xVpEvqVgOWoo7l3Nka5X0ESat5l4TRyJW1prfit20hMlAKgGwNC0nAixc 25RT8cO5cFEPtmKldwDEJhaM54Fy2jI+BL+zSETv3Ynphe8Rp4kfW/vTnabKFsH/0qHY wizw== X-Gm-Message-State: ALoCoQnR4eyhTpiJ0+3BlOKvViqliINm0B+pMynrd8J5STytHkIpkFzkdLBUvgVnRKAW9jzWHn6F X-Received: by 10.112.162.228 with SMTP id yd4mr3434248lbb.8.1434510207758; Tue, 16 Jun 2015 20:03:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.35 with SMTP id cj3ls240508lad.7.gmail; Tue, 16 Jun 2015 20:03:27 -0700 (PDT) X-Received: by 10.112.171.101 with SMTP id at5mr5522345lbc.66.1434510207636; Tue, 16 Jun 2015 20:03:27 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id m5si2232099laf.170.2015.06.16.20.03.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2015 20:03:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labko7 with SMTP id ko7so23636707lab.2 for ; Tue, 16 Jun 2015 20:03:27 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr5314006lbb.29.1434510207509; Tue, 16 Jun 2015 20:03:27 -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 hn6csp154064lbb; Tue, 16 Jun 2015 20:03:26 -0700 (PDT) X-Received: by 10.140.23.147 with SMTP id 19mr4994707qgp.84.1434510206307; Tue, 16 Jun 2015 20:03:26 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 93si3064325qkt.2.2015.06.16.20.03.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Jun 2015 20:03:26 -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]:43972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53dN-0004ne-Ho for patch@linaro.org; Tue, 16 Jun 2015 23:03:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53b2-0000u0-0i for qemu-devel@nongnu.org; Tue, 16 Jun 2015 23:01:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z53b1-0005xQ-3H for qemu-devel@nongnu.org; Tue, 16 Jun 2015 23:00:59 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:52533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53at-0005iT-DY; Tue, 16 Jun 2015 23:00:51 -0400 Received: from 172.24.2.119 (EHLO szxeml434-hub.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id BHU84676; Wed, 17 Jun 2015 11:00:43 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml434-hub.china.huawei.com (10.82.67.225) with Microsoft SMTP Server id 14.3.158.1; Wed, 17 Jun 2015 11:00:28 +0800 From: Shannon Zhao To: Date: Wed, 17 Jun 2015 10:59:59 +0800 Message-ID: <1434510002-6976-6-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1434510002-6976-1-git-send-email-zhaoshenglong@huawei.com> References: <1434510002-6976-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.0A020201.5580E2DB.00B8, 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: 59046c0510e74552441e17f05c371ac8 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, mjt@tls.msk.ru, shannon.zhao@linaro.org Subject: [Qemu-devel] [PATCH v3 5/8] hw/sh4/r2d.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.215.42 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/sh4/r2d.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c index 5e22ed7..7f621b2 100644 --- a/hw/sh4/r2d.c +++ b/hw/sh4/r2d.c @@ -261,6 +261,7 @@ static void r2d_init(MachineState *machine) /* Register peripherals */ s = sh7750_init(cpu, address_space_mem); irq = r2d_fpga_init(address_space_mem, 0x04000000, sh7750_irl(s)); + machine->irqs = irq; dev = qdev_create(NULL, "sh_pci"); busdev = SYS_BUS_DEVICE(dev);