From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvWi9-00048M-GH for qemu-devel@nongnu.org; Mon, 12 May 2008 08:00:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvWi9-00047r-0u for qemu-devel@nongnu.org; Mon, 12 May 2008 08:00:57 -0400 Received: from [199.232.76.173] (port=36357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvWi8-00047P-B7 for qemu-devel@nongnu.org; Mon, 12 May 2008 08:00:56 -0400 Received: from savannah.gnu.org ([199.232.41.3]:48256 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JvWi7-00036i-Jd for qemu-devel@nongnu.org; Mon, 12 May 2008 08:00:55 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JvWi5-0006hA-To for qemu-devel@nongnu.org; Mon, 12 May 2008 12:00:54 +0000 Received: from bellard by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JvWi4-0006gv-1i for qemu-devel@nongnu.org; Mon, 12 May 2008 12:00:53 +0000 MIME-Version: 1.0 Errors-To: bellard Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Fabrice Bellard Message-Id: Date: Mon, 12 May 2008 12:00:52 +0000 Subject: [Qemu-devel] [4434] removed unused code Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4434 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4434 Author: bellard Date: 2008-05-12 12:00:46 +0000 (Mon, 12 May 2008) Log Message: ----------- removed unused code Modified Paths: -------------- trunk/cpu-all.h trunk/exec-all.h trunk/tests/qruncom.c trunk/translate-all.c trunk/vl.c Modified: trunk/cpu-all.h =================================================================== --- trunk/cpu-all.h 2008-05-12 07:57:23 UTC (rev 4433) +++ trunk/cpu-all.h 2008-05-12 12:00:46 UTC (rev 4434) @@ -743,7 +743,6 @@ __attribute__ ((__noreturn__)); extern CPUState *first_cpu; extern CPUState *cpu_single_env; -extern int code_copy_enabled; #define CPU_INTERRUPT_EXIT 0x01 /* wants exit from main loop */ #define CPU_INTERRUPT_HARD 0x02 /* hardware interrupt pending */ Modified: trunk/exec-all.h =================================================================== --- trunk/exec-all.h 2008-05-12 07:57:23 UTC (rev 4433) +++ trunk/exec-all.h 2008-05-12 12:00:46 UTC (rev 4434) @@ -77,8 +77,6 @@ int cpu_restore_state(struct TranslationBlock *tb, CPUState *env, unsigned long searched_pc, void *puc); -int cpu_gen_code_copy(CPUState *env, struct TranslationBlock *tb, - int max_code_size, int *gen_code_size_ptr); int cpu_restore_state_copy(struct TranslationBlock *tb, CPUState *env, unsigned long searched_pc, void *puc); @@ -158,7 +156,6 @@ uint16_t size; /* size of target code for this block (1 <= size <= TARGET_PAGE_SIZE) */ uint16_t cflags; /* compile flags */ -#define CF_CODE_COPY 0x0001 /* block was generated in code copy mode */ #define CF_TB_FP_USED 0x0002 /* fp ops are used in the TB */ #define CF_FP_USED 0x0004 /* fp ops are used in the TB or in a chained TB */ #define CF_SINGLE_INSN 0x0008 /* compile only a single instruction */ Modified: trunk/tests/qruncom.c =================================================================== --- trunk/tests/qruncom.c 2008-05-12 07:57:23 UTC (rev 4433) +++ trunk/tests/qruncom.c 2008-05-12 12:00:46 UTC (rev 4434) @@ -199,9 +199,6 @@ env = cpu_init("qemu32"); - /* disable code copy to simplify debugging */ - code_copy_enabled = 0; - /* set user mode state (XXX: should be done automatically by cpu_init ?) */ env->user_mode_only = 1; Modified: trunk/translate-all.c =================================================================== --- trunk/translate-all.c 2008-05-12 07:57:23 UTC (rev 4433) +++ trunk/translate-all.c 2008-05-12 12:00:46 UTC (rev 4434) @@ -48,8 +48,6 @@ uint32_t gen_opc_hflags[OPC_BUF_SIZE]; #endif -int code_copy_enabled = 1; - #ifdef CONFIG_PROFILER int64_t dyngen_tb_count1; int64_t dyngen_tb_count; Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-05-12 07:57:23 UTC (rev 4433) +++ trunk/vl.c 2008-05-12 12:00:46 UTC (rev 4434) @@ -7343,7 +7343,6 @@ QEMU_OPTION_hdachs, QEMU_OPTION_L, QEMU_OPTION_bios, - QEMU_OPTION_no_code_copy, QEMU_OPTION_k, QEMU_OPTION_localtime, QEMU_OPTION_cirrusvga, @@ -7440,7 +7439,6 @@ { "hdachs", HAS_ARG, QEMU_OPTION_hdachs }, { "L", HAS_ARG, QEMU_OPTION_L }, { "bios", HAS_ARG, QEMU_OPTION_bios }, - { "no-code-copy", 0, QEMU_OPTION_no_code_copy }, #ifdef USE_KQEMU { "no-kqemu", 0, QEMU_OPTION_no_kqemu }, { "kernel-kqemu", 0, QEMU_OPTION_kernel_kqemu }, @@ -7978,9 +7976,6 @@ fd_bootchk = 0; break; #endif - case QEMU_OPTION_no_code_copy: - code_copy_enabled = 0; - break; case QEMU_OPTION_net: if (nb_net_clients >= MAX_NET_CLIENTS) { fprintf(stderr, "qemu: too many network clients\n");