Commit a57f63167c3a04a42c5b4762045445b2e0685a31

Authored by bellard
1 parent a39f8f3a

removed unused code

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4434 c046a42c-6fe2-441c-8c8c-71466251a162
cpu-all.h
@@ -743,7 +743,6 @@ void cpu_abort(CPUState *env, const char *fmt, ...) @@ -743,7 +743,6 @@ void cpu_abort(CPUState *env, const char *fmt, ...)
743 __attribute__ ((__noreturn__)); 743 __attribute__ ((__noreturn__));
744 extern CPUState *first_cpu; 744 extern CPUState *first_cpu;
745 extern CPUState *cpu_single_env; 745 extern CPUState *cpu_single_env;
746 -extern int code_copy_enabled;  
747 746
748 #define CPU_INTERRUPT_EXIT 0x01 /* wants exit from main loop */ 747 #define CPU_INTERRUPT_EXIT 0x01 /* wants exit from main loop */
749 #define CPU_INTERRUPT_HARD 0x02 /* hardware interrupt pending */ 748 #define CPU_INTERRUPT_HARD 0x02 /* hardware interrupt pending */
exec-all.h
@@ -77,8 +77,6 @@ int cpu_gen_code(CPUState *env, struct TranslationBlock *tb, @@ -77,8 +77,6 @@ int cpu_gen_code(CPUState *env, struct TranslationBlock *tb,
77 int cpu_restore_state(struct TranslationBlock *tb, 77 int cpu_restore_state(struct TranslationBlock *tb,
78 CPUState *env, unsigned long searched_pc, 78 CPUState *env, unsigned long searched_pc,
79 void *puc); 79 void *puc);
80 -int cpu_gen_code_copy(CPUState *env, struct TranslationBlock *tb,  
81 - int max_code_size, int *gen_code_size_ptr);  
82 int cpu_restore_state_copy(struct TranslationBlock *tb, 80 int cpu_restore_state_copy(struct TranslationBlock *tb,
83 CPUState *env, unsigned long searched_pc, 81 CPUState *env, unsigned long searched_pc,
84 void *puc); 82 void *puc);
@@ -158,7 +156,6 @@ typedef struct TranslationBlock { @@ -158,7 +156,6 @@ typedef struct TranslationBlock {
158 uint16_t size; /* size of target code for this block (1 <= 156 uint16_t size; /* size of target code for this block (1 <=
159 size <= TARGET_PAGE_SIZE) */ 157 size <= TARGET_PAGE_SIZE) */
160 uint16_t cflags; /* compile flags */ 158 uint16_t cflags; /* compile flags */
161 -#define CF_CODE_COPY 0x0001 /* block was generated in code copy mode */  
162 #define CF_TB_FP_USED 0x0002 /* fp ops are used in the TB */ 159 #define CF_TB_FP_USED 0x0002 /* fp ops are used in the TB */
163 #define CF_FP_USED 0x0004 /* fp ops are used in the TB or in a chained TB */ 160 #define CF_FP_USED 0x0004 /* fp ops are used in the TB or in a chained TB */
164 #define CF_SINGLE_INSN 0x0008 /* compile only a single instruction */ 161 #define CF_SINGLE_INSN 0x0008 /* compile only a single instruction */
tests/qruncom.c
@@ -199,9 +199,6 @@ int main(int argc, char **argv) @@ -199,9 +199,6 @@ int main(int argc, char **argv)
199 199
200 env = cpu_init("qemu32"); 200 env = cpu_init("qemu32");
201 201
202 - /* disable code copy to simplify debugging */  
203 - code_copy_enabled = 0;  
204 -  
205 /* set user mode state (XXX: should be done automatically by 202 /* set user mode state (XXX: should be done automatically by
206 cpu_init ?) */ 203 cpu_init ?) */
207 env->user_mode_only = 1; 204 env->user_mode_only = 1;
translate-all.c
@@ -48,8 +48,6 @@ target_ulong gen_opc_jump_pc[2]; @@ -48,8 +48,6 @@ target_ulong gen_opc_jump_pc[2];
48 uint32_t gen_opc_hflags[OPC_BUF_SIZE]; 48 uint32_t gen_opc_hflags[OPC_BUF_SIZE];
49 #endif 49 #endif
50 50
51 -int code_copy_enabled = 1;  
52 -  
53 #ifdef CONFIG_PROFILER 51 #ifdef CONFIG_PROFILER
54 int64_t dyngen_tb_count1; 52 int64_t dyngen_tb_count1;
55 int64_t dyngen_tb_count; 53 int64_t dyngen_tb_count;
@@ -7343,7 +7343,6 @@ enum { @@ -7343,7 +7343,6 @@ enum {
7343 QEMU_OPTION_hdachs, 7343 QEMU_OPTION_hdachs,
7344 QEMU_OPTION_L, 7344 QEMU_OPTION_L,
7345 QEMU_OPTION_bios, 7345 QEMU_OPTION_bios,
7346 - QEMU_OPTION_no_code_copy,  
7347 QEMU_OPTION_k, 7346 QEMU_OPTION_k,
7348 QEMU_OPTION_localtime, 7347 QEMU_OPTION_localtime,
7349 QEMU_OPTION_cirrusvga, 7348 QEMU_OPTION_cirrusvga,
@@ -7440,7 +7439,6 @@ const QEMUOption qemu_options[] = { @@ -7440,7 +7439,6 @@ const QEMUOption qemu_options[] = {
7440 { "hdachs", HAS_ARG, QEMU_OPTION_hdachs }, 7439 { "hdachs", HAS_ARG, QEMU_OPTION_hdachs },
7441 { "L", HAS_ARG, QEMU_OPTION_L }, 7440 { "L", HAS_ARG, QEMU_OPTION_L },
7442 { "bios", HAS_ARG, QEMU_OPTION_bios }, 7441 { "bios", HAS_ARG, QEMU_OPTION_bios },
7443 - { "no-code-copy", 0, QEMU_OPTION_no_code_copy },  
7444 #ifdef USE_KQEMU 7442 #ifdef USE_KQEMU
7445 { "no-kqemu", 0, QEMU_OPTION_no_kqemu }, 7443 { "no-kqemu", 0, QEMU_OPTION_no_kqemu },
7446 { "kernel-kqemu", 0, QEMU_OPTION_kernel_kqemu }, 7444 { "kernel-kqemu", 0, QEMU_OPTION_kernel_kqemu },
@@ -7978,9 +7976,6 @@ int main(int argc, char **argv) @@ -7978,9 +7976,6 @@ int main(int argc, char **argv)
7978 fd_bootchk = 0; 7976 fd_bootchk = 0;
7979 break; 7977 break;
7980 #endif 7978 #endif
7981 - case QEMU_OPTION_no_code_copy:  
7982 - code_copy_enabled = 0;  
7983 - break;  
7984 case QEMU_OPTION_net: 7979 case QEMU_OPTION_net:
7985 if (nb_net_clients >= MAX_NET_CLIENTS) { 7980 if (nb_net_clients >= MAX_NET_CLIENTS) {
7986 fprintf(stderr, "qemu: too many network clients\n"); 7981 fprintf(stderr, "qemu: too many network clients\n");