Lines Matching refs:tb
54 * Memchecker code in this module copies TB PC <-> Guest PC map to the TB
97 int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr)
113 gen_intermediate_code(env, tb);
116 gen_code_buf = tb->tc_ptr;
117 tb->tb_next_offset[0] = 0xffff;
118 tb->tb_next_offset[1] = 0xffff;
119 s->tb_next_offset = tb->tb_next_offset;
121 s->tb_jmp_offset = tb->tb_jmp_offset;
125 tb->tb_jmp_offset[2] = 0xffff;
126 tb->tb_jmp_offset[3] = 0xffff;
129 s->tb_next = tb->tb_next;
141 s->code_in_len += tb->size;
146 /* Save translated PC -> guest PC map into TB. */
148 tb->tpc2gpc =
150 if (tb->tpc2gpc != NULL) {
151 memcpy(tb->tpc2gpc, gen_opc_tpc2gpc_ptr,
153 tb->tpc2gpc_pairs = gen_opc_tpc2gpc_pairs;
161 log_disas(tb->tc_ptr, *gen_code_size_ptr);
171 int cpu_restore_state(TranslationBlock *tb,
187 gen_intermediate_code_pc(env, tb);
191 env->icount_decr.u16.low += tb->icount;
197 tc_ptr = (unsigned long)tb->tc_ptr;
201 s->tb_next_offset = tb->tb_next_offset;
203 s->tb_jmp_offset = tb->tb_jmp_offset;
207 s->tb_next = tb->tb_next;
217 gen_pc_load(env, tb, searched_pc, j, puc);