From patchwork Wed Jun 17 02:59:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 49968 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E618D205DE for ; Wed, 17 Jun 2015 03:02:06 +0000 (UTC) Received: by wgfj7 with SMTP id j7sf5829605wgf.1 for ; Tue, 16 Jun 2015 20:02:06 -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=dhqgts2HCKHbSVjFyAsXrkPxOybZHJbg3/Or/FQgUarInf7MGA3Pu/rDjFvXaPd3pT FCGydasBuFshFceJuhP/U9RTg+7Ooye6wZk0tIKhmt0/BXbAMEznbnhZ3YiVp5gIrrEg L8gmAyaJxPdAgMETiVzOOnxzQPY2kBOLC4EzAalIJdp9EWy3HSB2CcMq4EHUbsTC9FfB 49xQoEl8kGjl+xxNdHILhC6xxV2aLgXiHkshPHdNBVS8H5Pqxv1vjdFtop38veIUx0sw Q2eXkWOBl+It1TB6YIiG6eK762BXy0QVujQfamUlkX+LDHMcBQuA0HWTCY0bX8oU5Npv lbMQ== X-Gm-Message-State: ALoCoQl22aXsV3ygbL/LoWk8eEf4zHAfR1LYMvCyLXvNZIhzE8UdovpiUKInMcUVwyafsNGOMLPt X-Received: by 10.152.42.208 with SMTP id q16mr3416567lal.9.1434510126079; Tue, 16 Jun 2015 20:02:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.72 with SMTP id h8ls235909laa.71.gmail; Tue, 16 Jun 2015 20:02:05 -0700 (PDT) X-Received: by 10.152.45.98 with SMTP id l2mr5376013lam.77.1434510125966; Tue, 16 Jun 2015 20:02:05 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id lf11si2242527lac.125.2015.06.16.20.02.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2015 20:02:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lblr1 with SMTP id r1so22661802lbl.0 for ; Tue, 16 Jun 2015 20:02:05 -0700 (PDT) X-Received: by 10.152.225.166 with SMTP id rl6mr5485113lac.36.1434510125840; Tue, 16 Jun 2015 20:02:05 -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 hn6csp153455lbb; Tue, 16 Jun 2015 20:02:05 -0700 (PDT) X-Received: by 10.140.233.10 with SMTP id e10mr5352515qhc.55.1434510124701; Tue, 16 Jun 2015 20:02:04 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n91si3030713qkh.118.2015.06.16.20.02.04 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Jun 2015 20:02:04 -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]:43952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53c3-00021b-Mj for patch@linaro.org; Tue, 16 Jun 2015 23:02:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53ax-0000sV-U2 for qemu-devel@nongnu.org; Tue, 16 Jun 2015 23:00:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z53aw-0005tQ-TS for qemu-devel@nongnu.org; Tue, 16 Jun 2015 23:00:55 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:52019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53ap-0005Ty-L0; Tue, 16 Jun 2015 23:00:48 -0400 Received: from 172.24.2.119 (EHLO szxeml434-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CND85246; Wed, 17 Jun 2015 11:00:36 +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:26 +0800 From: Shannon Zhao To: Date: Wed, 17 Jun 2015 10:59:58 +0800 Message-ID: <1434510002-6976-5-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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 119.145.14.65 Cc: qemu-trivial@nongnu.org, mjt@tls.msk.ru, shannon.zhao@linaro.org Subject: [Qemu-devel] [PATCH v3 4/8] 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.175 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) {