From patchwork Wed Jun 17 02:59:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 49966 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B56C8205DE for ; Wed, 17 Jun 2015 03:02:00 +0000 (UTC) Received: by wgbhy7 with SMTP id hy7sf8710044wgb.3 for ; Tue, 16 Jun 2015 20:02:00 -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=cfCj4LcQEB6kD4ATc3nr0XVUeEzhWkGe/Gp/LqoFotw=; b=ZbaC84Zd8A9/u7cpLFd/k5ZI1Vhq3UeB8iSihE1Sf6PuVuxtJ2yv2L0E1akWyWbTd0 VT7Wa8ww29Gg2zdHVChmt14oENar9zjy6n+xLq/tsael2gFKCvm0t75WgocgMd0VS/4B kflCCHlRfmMvaFgY8SbJGV0LfxMRgM+0cPy3IYNoJAOtvVx/qTcKwH8xTcOnG6bH2EEg SeG9RKOI2Jx65Zki9UoD8ScZS2yOc17sTVTLjehQtNZSHAxDnnrXJHLigja37l3+f3c3 khE4ca3evWB17qMDW7fJeO7H63OLH2DwRUK+GJsCS4qzoJdxIFqK7L/iQWkvhVe+ts6z vrxg== X-Gm-Message-State: ALoCoQk0iyg2lkpzIXHQVx0q/Gw2j07lcLyEZ5swLD6ojWzpu9QKXT7nLwK1+LG/tAQizCubPjHo X-Received: by 10.194.179.42 with SMTP id dd10mr764620wjc.7.1434510119969; Tue, 16 Jun 2015 20:01:59 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.81 with SMTP id v17ls258697laz.2.gmail; Tue, 16 Jun 2015 20:01:59 -0700 (PDT) X-Received: by 10.152.45.9 with SMTP id i9mr5260448lam.87.1434510119833; Tue, 16 Jun 2015 20:01:59 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id uh5si2231620lac.168.2015.06.16.20.01.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2015 20:01:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by labko7 with SMTP id ko7so23623473lab.2 for ; Tue, 16 Jun 2015 20:01:59 -0700 (PDT) X-Received: by 10.152.22.99 with SMTP id c3mr5576143laf.32.1434510119711; Tue, 16 Jun 2015 20:01:59 -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 hn6csp153409lbb; Tue, 16 Jun 2015 20:01:58 -0700 (PDT) X-Received: by 10.55.25.145 with SMTP id 17mr8422780qkz.46.1434510118353; Tue, 16 Jun 2015 20:01:58 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id w53si3049182qge.37.2015.06.16.20.01.57 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Jun 2015 20:01:58 -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]:43950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53bx-0001oj-JB for patch@linaro.org; Tue, 16 Jun 2015 23:01:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53ay-0000sW-43 for qemu-devel@nongnu.org; Tue, 16 Jun 2015 23:00:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z53ax-0005u4-Ep for qemu-devel@nongnu.org; Tue, 16 Jun 2015 23:00:56 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:52010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z53as-0005SC-Qf; 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 szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CND85247; 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:24 +0800 From: Shannon Zhao To: Date: Wed, 17 Jun 2015 10:59:57 +0800 Message-ID: <1434510002-6976-4-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 3/8] hw/sparc/leon3.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.47 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/sparc/leon3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c index 7f5dcd6..6733ebb 100644 --- a/hw/sparc/leon3.c +++ b/hw/sparc/leon3.c @@ -140,6 +140,7 @@ static void leon3_generic_hw_init(MachineState *machine) /* Allocate IRQ manager */ grlib_irqmp_create(0x80000200, env, &cpu_irqs, MAX_PILS, &leon3_set_pil_in); + machine->irqs = cpu_irqs; env->qemu_irq_ack = leon3_irq_manager;