From patchwork Mon Dec 6 15:06:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 74379 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E9DEDB7080 for ; Tue, 7 Dec 2010 02:30:04 +1100 (EST) Received: from localhost ([127.0.0.1]:52971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPd0q-0005Qu-My for incoming@patchwork.ozlabs.org; Mon, 06 Dec 2010 10:30:00 -0500 Received: from [140.186.70.92] (port=58577 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPczc-00056N-RV for qemu-devel@nongnu.org; Mon, 06 Dec 2010 10:28:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPczb-0007Oy-Mz for qemu-devel@nongnu.org; Mon, 06 Dec 2010 10:28:44 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:43747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPczb-0007Oe-Fm for qemu-devel@nongnu.org; Mon, 06 Dec 2010 10:28:43 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.69) (envelope-from ) id 1PPcdi-0007bl-95; Mon, 06 Dec 2010 15:06:06 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 6 Dec 2010 15:06:06 +0000 Message-Id: <1291647966-29220-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1291647966-29220-1-git-send-email-peter.maydell@linaro.org> References: <1291647966-29220-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Riku Voipio , Wolfgang Schildbach , Nathan Froyd Subject: [Qemu-devel] [PATCH 2/2] Remove dead code for ARM semihosting commandline handling X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Wolfgang Schildbach There are some bits in the code which were used to store the commandline for the semihosting call. These bits are now write-only and can be removed. Signed-off-by: Wolfgang Schildbach Reviewed-by: Peter Maydell --- bsd-user/bsdload.c | 2 -- bsd-user/qemu.h | 1 - linux-user/linuxload.c | 2 -- linux-user/qemu.h | 1 - 4 files changed, 0 insertions(+), 6 deletions(-) diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c index 14a93bf..6d9bb6f 100644 --- a/bsd-user/bsdload.c +++ b/bsd-user/bsdload.c @@ -176,8 +176,6 @@ int loader_exec(const char * filename, char ** argv, char ** envp, retval = prepare_binprm(&bprm); - infop->host_argv = argv; - if(retval>=0) { if (bprm.buf[0] == 0x7f && bprm.buf[1] == 'E' diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 9763616..e343894 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -50,7 +50,6 @@ struct image_info { abi_ulong entry; abi_ulong code_offset; abi_ulong data_offset; - char **host_argv; int personality; }; diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c index 9ee27c3..ac8c486 100644 --- a/linux-user/linuxload.c +++ b/linux-user/linuxload.c @@ -174,8 +174,6 @@ int loader_exec(const char * filename, char ** argv, char ** envp, retval = prepare_binprm(bprm); - infop->host_argv = argv; - if(retval>=0) { if (bprm->buf[0] == 0x7f && bprm->buf[1] == 'E' diff --git a/linux-user/qemu.h b/linux-user/qemu.h index e66a02b..32de241 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -50,7 +50,6 @@ struct image_info { abi_ulong saved_auxv; abi_ulong arg_start; abi_ulong arg_end; - char **host_argv; int personality; };