Changeset 37689 in vbox for trunk/src/recompiler/translate-all.c
- Timestamp:
- Jun 29, 2011 4:01:23 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72549
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/translate-all.c
r36175 r37689 40 40 #include "disas.h" 41 41 #include "tcg.h" 42 #include "qemu-timer.h" 42 43 43 44 /* code generation context */ … … 50 51 uint16_t gen_opc_icount[OPC_BUF_SIZE]; 51 52 uint8_t gen_opc_instr_start[OPC_BUF_SIZE]; 52 #if defined(TARGET_I386)53 uint8_t gen_opc_cc_op[OPC_BUF_SIZE];54 #elif defined(TARGET_SPARC)55 target_ulong gen_opc_npc[OPC_BUF_SIZE];56 target_ulong gen_opc_jump_pc[2];57 #elif defined(TARGET_MIPS) || defined(TARGET_SH4)58 uint32_t gen_opc_hflags[OPC_BUF_SIZE];59 #endif60 61 /* XXX: suppress that */62 unsigned long code_gen_max_block_size(void)63 {64 #ifdef VBOX65 /* Just to suppress a lot of dummy warnings */66 static long max;67 #else68 static unsigned long max;69 #endif70 71 if (max == 0) {72 max = TCG_MAX_OP_SIZE;73 #define DEF(s, n, copy_size) max = copy_size > max? copy_size : max;74 #include "tcg-opc.h"75 #undef DEF76 max *= OPC_MAX_SIZE;77 }78 79 return max;80 }81 53 82 54 void cpu_gen_init(void) … … 124 96 s->tb_jmp_offset = tb->tb_jmp_offset; 125 97 s->tb_next = NULL; 126 /* the following two entries are optional (only used for string ops) */127 /* XXX: not used ? */128 tb->tb_jmp_offset[2] = 0xffff;129 tb->tb_jmp_offset[3] = 0xffff;130 98 #else 131 99 s->tb_jmp_offset = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.