Lines Matching refs:tb
54 * Memchecker code in this module copies TB PC <-> Guest PC map to the TB
99 int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr)
115 gen_intermediate_code(env, tb);
118 gen_code_buf = tb->tc_ptr;
119 tb->tb_next_offset[0] = 0xffff;
120 tb->tb_next_offset[1] = 0xffff;
121 s->tb_next_offset = tb->tb_next_offset;
123 s->tb_jmp_offset = tb->tb_jmp_offset;
127 tb->tb_jmp_offset[2] = 0xffff;
128 tb->tb_jmp_offset[3] = 0xffff;
131 s->tb_next = tb->tb_next;
143 s->code_in_len += tb->size;
148 /* Save translated PC -> guest PC map into TB. */
150 tb->tpc2gpc =
152 if (tb->tpc2gpc != NULL) {
153 memcpy(tb->tpc2gpc, gen_opc_tpc2gpc_ptr,
155 tb->tpc2gpc_pairs = gen_opc_tpc2gpc_pairs;
164 log_disas(tb->tc_ptr, *gen_code_size_ptr);
174 int cpu_restore_state(TranslationBlock *tb,
189 gen_intermediate_code_pc(env, tb);
193 env->icount_decr.u16.low += tb->icount;
199 tc_ptr = (unsigned long)tb->tc_ptr;
203 s->tb_next_offset = tb->tb_next_offset;
205 s->tb_jmp_offset = tb->tb_jmp_offset;
209 s->tb_next = tb->tb_next;
219 restore_state_to_opc(env, tb, j);