Changeset 36140 in vbox for trunk/src/recompiler/translate-all.c
- Timestamp:
- Mar 3, 2011 1:48:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/translate-all.c
r33656 r36140 32 32 #include <stdio.h> 33 33 #include <string.h> 34 #include <inttypes.h> 34 35 35 36 #include "config.h" … … 55 56 target_ulong gen_opc_npc[OPC_BUF_SIZE]; 56 57 target_ulong gen_opc_jump_pc[2]; 57 #elif defined(TARGET_MIPS) 58 #elif defined(TARGET_MIPS) || defined(TARGET_SH4) 58 59 uint32_t gen_opc_hflags[OPC_BUF_SIZE]; 59 60 #endif … … 71 72 if (max == 0) { 72 73 max = TCG_MAX_OP_SIZE; 73 #define DEF(s, n, copy_size) max = (copy_size > max)? copy_size : max;74 #define DEF(s, n, copy_size) max = copy_size > max? copy_size : max; 74 75 #include "tcg-opc.h" 75 76 #undef DEF … … 80 81 } 81 82 82 void cpu_gen_init( )83 void cpu_gen_init(void) 83 84 { 84 85 tcg_context_init(&tcg_ctx); … … 93 94 code). 94 95 */ 95 int cpu_gen_code(CPUState *env, TranslationBlock *tb, 96 int *gen_code_size_ptr) 96 int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr) 97 97 { 98 98 TCGContext *s = &tcg_ctx; … … 111 111 #ifdef VBOX 112 112 RAWEx_ProfileStart(env, STATS_QEMU_COMPILATION); 113 #endif 114 113 115 tcg_func_start(s); 114 116 115 117 gen_intermediate_code(env, tb); 116 #else /* !VBOX */117 tcg_func_start(s);118 119 gen_intermediate_code(env, tb);120 #endif /* !VBOX */121 118 122 119 /* generate machine code */ … … 129 126 s->tb_next = NULL; 130 127 /* the following two entries are optional (only used for string ops) */ 128 /* XXX: not used ? */ 131 129 tb->tb_jmp_offset[2] = 0xffff; 132 130 tb->tb_jmp_offset[3] = 0xffff; … … 141 139 s->code_time -= profile_getclock(); 142 140 #endif 143 144 141 gen_code_size = dyngen_code(s, gen_code_buf); 145 142 *gen_code_size_ptr = gen_code_size;
Note:
See TracChangeset
for help on using the changeset viewer.