bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Host code generation |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 3 | * |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 4 | * Copyright (c) 2003 Fabrice Bellard |
| 5 | * |
| 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library; if not, write to the Free Software |
| 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 | */ |
| 20 | #include <stdarg.h> |
| 21 | #include <stdlib.h> |
| 22 | #include <stdio.h> |
| 23 | #include <string.h> |
| 24 | #include <inttypes.h> |
| 25 | |
| 26 | #include "config.h" |
bellard | 2054396 | 2003-06-15 23:28:43 +0000 | [diff] [blame] | 27 | |
bellard | af5ad10 | 2004-01-04 23:28:12 +0000 | [diff] [blame] | 28 | #define NO_CPU_IO_DEFS |
bellard | d3eead2 | 2003-09-30 20:59:51 +0000 | [diff] [blame] | 29 | #include "cpu.h" |
| 30 | #include "exec-all.h" |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 31 | #include "disas.h" |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 32 | #include "tcg.h" |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 33 | |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 34 | /* code generation context */ |
| 35 | TCGContext tcg_ctx; |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 36 | |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 37 | uint16_t gen_opc_buf[OPC_BUF_SIZE]; |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 38 | TCGArg gen_opparam_buf[OPPARAM_BUF_SIZE]; |
bellard | c468787 | 2005-01-03 23:44:44 +0000 | [diff] [blame] | 39 | |
| 40 | target_ulong gen_opc_pc[OPC_BUF_SIZE]; |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 41 | uint8_t gen_opc_instr_start[OPC_BUF_SIZE]; |
bellard | f76af4b | 2003-06-24 13:21:23 +0000 | [diff] [blame] | 42 | #if defined(TARGET_I386) |
| 43 | uint8_t gen_opc_cc_op[OPC_BUF_SIZE]; |
bellard | e95c8d5 | 2004-09-30 22:22:08 +0000 | [diff] [blame] | 44 | #elif defined(TARGET_SPARC) |
bellard | c468787 | 2005-01-03 23:44:44 +0000 | [diff] [blame] | 45 | target_ulong gen_opc_npc[OPC_BUF_SIZE]; |
bellard | c3278b7 | 2005-03-20 12:43:29 +0000 | [diff] [blame] | 46 | target_ulong gen_opc_jump_pc[2]; |
ths | 823029f | 2007-12-02 06:10:04 +0000 | [diff] [blame] | 47 | #elif defined(TARGET_MIPS) || defined(TARGET_SH4) |
bellard | 30d6cb8 | 2005-12-05 19:56:07 +0000 | [diff] [blame] | 48 | uint32_t gen_opc_hflags[OPC_BUF_SIZE]; |
bellard | f76af4b | 2003-06-24 13:21:23 +0000 | [diff] [blame] | 49 | #endif |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 50 | |
bellard | 58fe2f1 | 2004-02-16 22:11:32 +0000 | [diff] [blame] | 51 | int code_copy_enabled = 1; |
| 52 | |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 53 | #ifdef CONFIG_PROFILER |
| 54 | int64_t dyngen_tb_count1; |
| 55 | int64_t dyngen_tb_count; |
| 56 | int64_t dyngen_op_count; |
| 57 | int64_t dyngen_old_op_count; |
| 58 | int64_t dyngen_tcg_del_op_count; |
| 59 | int dyngen_op_count_max; |
| 60 | int64_t dyngen_code_in_len; |
| 61 | int64_t dyngen_code_out_len; |
| 62 | int64_t dyngen_interm_time; |
| 63 | int64_t dyngen_code_time; |
| 64 | int64_t dyngen_restore_count; |
| 65 | int64_t dyngen_restore_time; |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 66 | #endif |
| 67 | |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 68 | /* XXX: suppress that */ |
blueswir1 | d07bde8 | 2007-12-11 19:35:45 +0000 | [diff] [blame] | 69 | unsigned long code_gen_max_block_size(void) |
| 70 | { |
| 71 | static unsigned long max; |
| 72 | |
| 73 | if (max == 0) { |
pbrook | a208e54 | 2008-03-31 17:07:36 +0000 | [diff] [blame] | 74 | max = TCG_MAX_OP_SIZE; |
blueswir1 | d07bde8 | 2007-12-11 19:35:45 +0000 | [diff] [blame] | 75 | #define DEF(s, n, copy_size) max = copy_size > max? copy_size : max; |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 76 | #include "tcg-opc.h" |
blueswir1 | d07bde8 | 2007-12-11 19:35:45 +0000 | [diff] [blame] | 77 | #undef DEF |
| 78 | max *= OPC_MAX_SIZE; |
| 79 | } |
| 80 | |
| 81 | return max; |
| 82 | } |
| 83 | |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 84 | void cpu_gen_init(void) |
| 85 | { |
| 86 | tcg_context_init(&tcg_ctx); |
| 87 | tcg_set_frame(&tcg_ctx, TCG_AREG0, offsetof(CPUState, temp_buf), |
blueswir1 | a20e31d | 2008-04-08 19:29:54 +0000 | [diff] [blame^] | 88 | CPU_TEMP_BUF_NLONGS * sizeof(long)); |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 89 | } |
| 90 | |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 91 | /* return non zero if the very first instruction is invalid so that |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 92 | the virtual CPU can trigger an exception. |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 93 | |
| 94 | '*gen_code_size_ptr' contains the size of the generated code (host |
| 95 | code). |
| 96 | */ |
blueswir1 | d07bde8 | 2007-12-11 19:35:45 +0000 | [diff] [blame] | 97 | int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr) |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 98 | { |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 99 | TCGContext *s = &tcg_ctx; |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 100 | uint8_t *gen_code_buf; |
| 101 | int gen_code_size; |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 102 | #ifdef CONFIG_PROFILER |
| 103 | int64_t ti; |
| 104 | #endif |
| 105 | |
| 106 | #ifdef CONFIG_PROFILER |
| 107 | dyngen_tb_count1++; /* includes aborted translations because of |
| 108 | exceptions */ |
| 109 | ti = profile_getclock(); |
| 110 | #endif |
| 111 | tcg_func_start(s); |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 112 | |
bellard | ec6338b | 2007-11-08 14:25:03 +0000 | [diff] [blame] | 113 | if (gen_intermediate_code(env, tb) < 0) |
| 114 | return -1; |
| 115 | |
| 116 | /* generate machine code */ |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 117 | gen_code_buf = tb->tc_ptr; |
bellard | ec6338b | 2007-11-08 14:25:03 +0000 | [diff] [blame] | 118 | tb->tb_next_offset[0] = 0xffff; |
| 119 | tb->tb_next_offset[1] = 0xffff; |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 120 | s->tb_next_offset = tb->tb_next_offset; |
bellard | 4cbb86e | 2003-09-17 22:53:29 +0000 | [diff] [blame] | 121 | #ifdef USE_DIRECT_JUMP |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 122 | s->tb_jmp_offset = tb->tb_jmp_offset; |
| 123 | s->tb_next = NULL; |
bellard | ec6338b | 2007-11-08 14:25:03 +0000 | [diff] [blame] | 124 | /* the following two entries are optional (only used for string ops) */ |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 125 | /* XXX: not used ? */ |
bellard | ec6338b | 2007-11-08 14:25:03 +0000 | [diff] [blame] | 126 | tb->tb_jmp_offset[2] = 0xffff; |
| 127 | tb->tb_jmp_offset[3] = 0xffff; |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 128 | #else |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 129 | s->tb_jmp_offset = NULL; |
| 130 | s->tb_next = tb->tb_next; |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 131 | #endif |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 132 | |
| 133 | #ifdef CONFIG_PROFILER |
| 134 | dyngen_tb_count++; |
| 135 | dyngen_interm_time += profile_getclock() - ti; |
| 136 | dyngen_code_time -= profile_getclock(); |
| 137 | #endif |
| 138 | gen_code_size = dyngen_code(s, gen_code_buf); |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 139 | *gen_code_size_ptr = gen_code_size; |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 140 | #ifdef CONFIG_PROFILER |
| 141 | dyngen_code_time += profile_getclock(); |
| 142 | dyngen_code_in_len += tb->size; |
| 143 | dyngen_code_out_len += gen_code_size; |
| 144 | #endif |
| 145 | |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 146 | #ifdef DEBUG_DISAS |
bellard | f193c79 | 2004-03-21 17:06:25 +0000 | [diff] [blame] | 147 | if (loglevel & CPU_LOG_TB_OUT_ASM) { |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 148 | fprintf(logfile, "OUT: [size=%d]\n", *gen_code_size_ptr); |
bellard | c468787 | 2005-01-03 23:44:44 +0000 | [diff] [blame] | 149 | disas(logfile, tb->tc_ptr, *gen_code_size_ptr); |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 150 | fprintf(logfile, "\n"); |
| 151 | fflush(logfile); |
| 152 | } |
| 153 | #endif |
| 154 | return 0; |
| 155 | } |
| 156 | |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 157 | /* The cpu state corresponding to 'searched_pc' is restored. |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 158 | */ |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 159 | int cpu_restore_state(TranslationBlock *tb, |
bellard | 58fe2f1 | 2004-02-16 22:11:32 +0000 | [diff] [blame] | 160 | CPUState *env, unsigned long searched_pc, |
| 161 | void *puc) |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 162 | { |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 163 | TCGContext *s = &tcg_ctx; |
| 164 | int j; |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 165 | unsigned long tc_ptr; |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 166 | #ifdef CONFIG_PROFILER |
| 167 | int64_t ti; |
| 168 | #endif |
| 169 | |
| 170 | #ifdef CONFIG_PROFILER |
| 171 | ti = profile_getclock(); |
| 172 | #endif |
| 173 | tcg_func_start(s); |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 174 | |
bellard | 4c3a88a | 2003-07-26 12:06:08 +0000 | [diff] [blame] | 175 | if (gen_intermediate_code_pc(env, tb) < 0) |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 176 | return -1; |
ths | 3b46e62 | 2007-09-17 08:09:54 +0000 | [diff] [blame] | 177 | |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 178 | /* find opc index corresponding to search_pc */ |
| 179 | tc_ptr = (unsigned long)tb->tc_ptr; |
| 180 | if (searched_pc < tc_ptr) |
| 181 | return -1; |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 182 | |
| 183 | s->tb_next_offset = tb->tb_next_offset; |
| 184 | #ifdef USE_DIRECT_JUMP |
| 185 | s->tb_jmp_offset = tb->tb_jmp_offset; |
| 186 | s->tb_next = NULL; |
| 187 | #else |
| 188 | s->tb_jmp_offset = NULL; |
| 189 | s->tb_next = tb->tb_next; |
| 190 | #endif |
pbrook | 623e265 | 2008-02-10 14:09:09 +0000 | [diff] [blame] | 191 | j = dyngen_code_search_pc(s, (uint8_t *)tc_ptr, searched_pc - tc_ptr); |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 192 | if (j < 0) |
| 193 | return -1; |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 194 | /* now find start of instruction before */ |
| 195 | while (gen_opc_instr_start[j] == 0) |
| 196 | j--; |
bellard | f76af4b | 2003-06-24 13:21:23 +0000 | [diff] [blame] | 197 | #if defined(TARGET_I386) |
| 198 | { |
| 199 | int cc_op; |
bellard | 3c1cf9f | 2003-07-07 11:30:47 +0000 | [diff] [blame] | 200 | #ifdef DEBUG_DISAS |
bellard | f193c79 | 2004-03-21 17:06:25 +0000 | [diff] [blame] | 201 | if (loglevel & CPU_LOG_TB_OP) { |
bellard | 3c1cf9f | 2003-07-07 11:30:47 +0000 | [diff] [blame] | 202 | int i; |
bellard | 6e0374f | 2003-07-13 17:34:37 +0000 | [diff] [blame] | 203 | fprintf(logfile, "RESTORE:\n"); |
bellard | 3c1cf9f | 2003-07-07 11:30:47 +0000 | [diff] [blame] | 204 | for(i=0;i<=j; i++) { |
| 205 | if (gen_opc_instr_start[i]) { |
bellard | c468787 | 2005-01-03 23:44:44 +0000 | [diff] [blame] | 206 | fprintf(logfile, "0x%04x: " TARGET_FMT_lx "\n", i, gen_opc_pc[i]); |
bellard | 3c1cf9f | 2003-07-07 11:30:47 +0000 | [diff] [blame] | 207 | } |
| 208 | } |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 209 | fprintf(logfile, "spc=0x%08lx j=0x%x eip=" TARGET_FMT_lx " cs_base=%x\n", |
| 210 | searched_pc, j, gen_opc_pc[j] - tb->cs_base, |
bellard | c468787 | 2005-01-03 23:44:44 +0000 | [diff] [blame] | 211 | (uint32_t)tb->cs_base); |
bellard | 3c1cf9f | 2003-07-07 11:30:47 +0000 | [diff] [blame] | 212 | } |
| 213 | #endif |
bellard | f76af4b | 2003-06-24 13:21:23 +0000 | [diff] [blame] | 214 | env->eip = gen_opc_pc[j] - tb->cs_base; |
| 215 | cc_op = gen_opc_cc_op[j]; |
| 216 | if (cc_op != CC_OP_DYNAMIC) |
| 217 | env->cc_op = cc_op; |
| 218 | } |
| 219 | #elif defined(TARGET_ARM) |
| 220 | env->regs[15] = gen_opc_pc[j]; |
bellard | d3eead2 | 2003-09-30 20:59:51 +0000 | [diff] [blame] | 221 | #elif defined(TARGET_SPARC) |
bellard | c3278b7 | 2005-03-20 12:43:29 +0000 | [diff] [blame] | 222 | { |
| 223 | target_ulong npc; |
| 224 | env->pc = gen_opc_pc[j]; |
| 225 | npc = gen_opc_npc[j]; |
| 226 | if (npc == 1) { |
| 227 | /* dynamic NPC: already stored */ |
| 228 | } else if (npc == 2) { |
bellard | 745cacc | 2007-11-11 17:26:45 +0000 | [diff] [blame] | 229 | target_ulong t2 = (target_ulong)(unsigned long)puc; |
bellard | c3278b7 | 2005-03-20 12:43:29 +0000 | [diff] [blame] | 230 | /* jump PC: use T2 and the jump targets of the translation */ |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 231 | if (t2) |
bellard | c3278b7 | 2005-03-20 12:43:29 +0000 | [diff] [blame] | 232 | env->npc = gen_opc_jump_pc[0]; |
| 233 | else |
| 234 | env->npc = gen_opc_jump_pc[1]; |
| 235 | } else { |
| 236 | env->npc = npc; |
| 237 | } |
| 238 | } |
bellard | 6dca201 | 2003-11-23 17:32:06 +0000 | [diff] [blame] | 239 | #elif defined(TARGET_PPC) |
bellard | af5ad10 | 2004-01-04 23:28:12 +0000 | [diff] [blame] | 240 | { |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 241 | int type, c; |
bellard | af5ad10 | 2004-01-04 23:28:12 +0000 | [diff] [blame] | 242 | /* for PPC, we need to look at the micro operation to get the |
| 243 | access type */ |
| 244 | env->nip = gen_opc_pc[j]; |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 245 | c = gen_opc_buf[j]; |
bellard | af5ad10 | 2004-01-04 23:28:12 +0000 | [diff] [blame] | 246 | switch(c) { |
| 247 | #if defined(CONFIG_USER_ONLY) |
| 248 | #define CASE3(op)\ |
| 249 | case INDEX_op_ ## op ## _raw |
| 250 | #else |
| 251 | #define CASE3(op)\ |
bellard | af5ad10 | 2004-01-04 23:28:12 +0000 | [diff] [blame] | 252 | case INDEX_op_ ## op ## _user:\ |
j_mayer | 7863667 | 2007-11-16 14:11:28 +0000 | [diff] [blame] | 253 | case INDEX_op_ ## op ## _kernel:\ |
| 254 | case INDEX_op_ ## op ## _hypv |
bellard | af5ad10 | 2004-01-04 23:28:12 +0000 | [diff] [blame] | 255 | #endif |
ths | 3b46e62 | 2007-09-17 08:09:54 +0000 | [diff] [blame] | 256 | |
bellard | af5ad10 | 2004-01-04 23:28:12 +0000 | [diff] [blame] | 257 | CASE3(stfd): |
| 258 | CASE3(stfs): |
| 259 | CASE3(lfd): |
| 260 | CASE3(lfs): |
| 261 | type = ACCESS_FLOAT; |
| 262 | break; |
bellard | a541f29 | 2004-04-12 20:39:29 +0000 | [diff] [blame] | 263 | CASE3(lwarx): |
| 264 | type = ACCESS_RES; |
| 265 | break; |
bellard | af5ad10 | 2004-01-04 23:28:12 +0000 | [diff] [blame] | 266 | CASE3(stwcx): |
| 267 | type = ACCESS_RES; |
| 268 | break; |
| 269 | CASE3(eciwx): |
| 270 | CASE3(ecowx): |
| 271 | type = ACCESS_EXT; |
| 272 | break; |
| 273 | default: |
| 274 | type = ACCESS_INT; |
| 275 | break; |
| 276 | } |
| 277 | env->access_type = type; |
| 278 | } |
pbrook | e6e5906 | 2006-10-22 00:18:54 +0000 | [diff] [blame] | 279 | #elif defined(TARGET_M68K) |
| 280 | env->pc = gen_opc_pc[j]; |
bellard | 6af0bf9 | 2005-07-02 14:58:51 +0000 | [diff] [blame] | 281 | #elif defined(TARGET_MIPS) |
ths | ead9360 | 2007-09-06 00:18:15 +0000 | [diff] [blame] | 282 | env->PC[env->current_tc] = gen_opc_pc[j]; |
bellard | 30d6cb8 | 2005-12-05 19:56:07 +0000 | [diff] [blame] | 283 | env->hflags &= ~MIPS_HFLAG_BMASK; |
| 284 | env->hflags |= gen_opc_hflags[j]; |
j_mayer | eddf68a | 2007-04-05 07:22:49 +0000 | [diff] [blame] | 285 | #elif defined(TARGET_ALPHA) |
| 286 | env->pc = gen_opc_pc[j]; |
ths | 823029f | 2007-12-02 06:10:04 +0000 | [diff] [blame] | 287 | #elif defined(TARGET_SH4) |
| 288 | env->pc = gen_opc_pc[j]; |
| 289 | env->flags = gen_opc_hflags[j]; |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 290 | #elif defined(TARGET_CRIS) |
| 291 | env->pregs[PR_ERP] = gen_opc_pc[j]; |
bellard | f76af4b | 2003-06-24 13:21:23 +0000 | [diff] [blame] | 292 | #endif |
bellard | 57fec1f | 2008-02-01 10:50:11 +0000 | [diff] [blame] | 293 | |
| 294 | #ifdef CONFIG_PROFILER |
| 295 | dyngen_restore_time += profile_getclock() - ti; |
| 296 | dyngen_restore_count++; |
| 297 | #endif |
bellard | d19893d | 2003-06-15 19:58:51 +0000 | [diff] [blame] | 298 | return 0; |
| 299 | } |