Lines Matching refs:tb
53 * Memchecker code in this module copies TB PC <-> Guest PC map to the TB
96 int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr)
112 gen_intermediate_code(env, tb);
115 gen_code_buf = tb->tc_ptr;
116 tb->tb_next_offset[0] = 0xffff;
117 tb->tb_next_offset[1] = 0xffff;
118 s->tb_next_offset = tb->tb_next_offset;
120 s->tb_jmp_offset = tb->tb_jmp_offset;
124 tb->tb_jmp_offset[2] = 0xffff;
125 tb->tb_jmp_offset[3] = 0xffff;
128 s->tb_next = tb->tb_next;
140 s->code_in_len += tb->size;
145 /* Save translated PC -> guest PC map into TB. */
147 tb->tpc2gpc =
149 if (tb->tpc2gpc != NULL) {
150 memcpy(tb->tpc2gpc, gen_opc_tpc2gpc_ptr,
152 tb->tpc2gpc_pairs = gen_opc_tpc2gpc_pairs;
160 log_disas(tb->tc_ptr, *gen_code_size_ptr);
170 int cpu_restore_state(TranslationBlock *tb,
186 gen_intermediate_code_pc(env, tb);
190 env->icount_decr.u16.low += tb->icount;
196 tc_ptr = (unsigned long)tb->tc_ptr;
200 s->tb_next_offset = tb->tb_next_offset;
202 s->tb_jmp_offset = tb->tb_jmp_offset;
206 s->tb_next = tb->tb_next;
216 gen_pc_load(env, tb, searched_pc, j, puc);