From patchwork Sun Apr 15 18:38:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 152688 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4A76BB6FDE for ; Mon, 16 Apr 2012 05:15:31 +1000 (EST) Received: from localhost ([::1]:46922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJUNP-0002eT-4k for incoming@patchwork.ozlabs.org; Sun, 15 Apr 2012 14:40:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJUMG-0008RC-L3 for qemu-devel@nongnu.org; Sun, 15 Apr 2012 14:39:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJUMD-0002rM-Sp for qemu-devel@nongnu.org; Sun, 15 Apr 2012 14:39:32 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35625 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJUMD-0002qa-Me; Sun, 15 Apr 2012 14:39:29 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 4D8F1906EB; Sun, 15 Apr 2012 20:39:28 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Sun, 15 Apr 2012 20:38:51 +0200 Message-Id: <1334515144-26485-8-git-send-email-afaerber@suse.de> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1334515144-26485-1-git-send-email-afaerber@suse.de> References: <1334515144-26485-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.15 Cc: blauwirbel@gmail.com, qemu-ppc@nongnu.org, agraf@suse.de, =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH 07/20] target-ppc: Drop cpu_ppc_close() 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org It is unused, so avoid QOM'ifying it unneededly. Signed-off-by: Andreas Färber Acked-by: David Gibson --- target-ppc/cpu.h | 1 - target-ppc/helper.c | 6 ------ 2 files changed, 0 insertions(+), 7 deletions(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index e7fb364..1d5c602 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -1100,7 +1100,6 @@ struct mmu_ctx_t { CPUPPCState *cpu_ppc_init (const char *cpu_model); void ppc_translate_init(void); int cpu_ppc_exec (CPUPPCState *s); -void cpu_ppc_close (CPUPPCState *s); /* you can call this signal handler from your SIGBUS and SIGSEGV signal handlers to inform the virtual CPU of exceptions. non zero is returned if the signal was handled by the virtual CPU. */ diff --git a/target-ppc/helper.c b/target-ppc/helper.c index f0ea1c3..f61b8b2 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -3214,9 +3214,3 @@ CPUPPCState *cpu_ppc_init (const char *cpu_model) return env; } - -void cpu_ppc_close (CPUPPCState *env) -{ - /* Should also remove all opcode tables... */ - g_free(env); -}