Lines Matching refs:tb
65 /* exit the current TB from a signal handler. The host registers are
101 TranslationBlock *tb;
104 We only end up here when an existing TB is too long. */
108 tb = tb_gen_code(env, orig_tb->pc, orig_tb->cs_base, orig_tb->flags,
110 env->current_tb = tb;
112 next_tb = tcg_qemu_tb_exec(tb->tc_ptr);
116 the TB starts executing. */
117 cpu_pc_from_tb(env, tb);
119 tb_phys_invalidate(tb, -1);
120 tb_free(tb);
127 TranslationBlock *tb, **ptb1;
142 tb = *ptb1;
143 if (!tb)
145 if (tb->pc == pc &&
146 tb->page_addr[0] == phys_page1 &&
147 tb->cs_base == cs_base &&
148 tb->flags == flags) {
150 if (tb->page_addr[1] != -1) {
154 if (tb->page_addr[1] == phys_page2)
160 ptb1 = &tb->phys_hash_next;
164 tb = tb_gen_code(env, pc, cs_base, flags, 0);
167 /* we add the TB in the virtual pc hash table */
168 env->tb_jmp_cache[tb_jmp_cache_hash_func(pc)] = tb;
169 return tb;
174 TranslationBlock *tb;
182 tb = env->tb_jmp_cache[tb_jmp_cache_hash_func(pc)];
183 if (unlikely(!tb || tb->pc != pc || tb->cs_base != cs_base ||
184 tb->flags != flags)) {
185 tb = tb_find_slow(pc, cs_base, flags);
187 return tb;
219 TranslationBlock *tb;
331 next_tb = 0; /* force lookup of first TB */
399 /* ensure that no TB jump will be modified as
537 /* ensure that no TB jump will be modified as
583 tb = tb_find_fast();
587 /* as some TB could have been invalidated because
595 (long)tb->tc_ptr, tb->pc,
596 lookup_symbol(tb->pc));
598 /* see if we can patch the calling TB. When the TB
606 tb->page_addr[1] == -1) {
607 tb_add_jump((TranslationBlock *)(next_tb & ~3), next_tb & 3, tb);
611 env->current_tb = tb;
614 TB, but before it is linked into a potentially
621 tc_ptr = tb->tc_ptr;
633 tb = (TranslationBlock *)(long)(next_tb & ~3);
635 cpu_pc_from_tb(env, tb);
650 cpu_exec_nocache(insns_left, tb);
773 TranslationBlock *tb;
794 tb = tb_find_pc(pc);
795 if (tb) {
798 cpu_restore_state(tb, env, pc, puc);
823 TranslationBlock *tb;
843 tb = tb_find_pc(pc);
844 if (tb) {
847 cpu_restore_state(tb, env, pc, puc);
861 TranslationBlock *tb;
881 tb = tb_find_pc(pc);
882 if (tb) {
885 cpu_restore_state(tb, env, pc, puc);
899 TranslationBlock *tb;
921 tb = tb_find_pc(pc);
922 if (tb) {
925 cpu_restore_state(tb, env, pc, puc);
930 env->nip, env->error_code, tb);
949 TranslationBlock *tb;
969 tb = tb_find_pc(pc);
970 if (tb) {
973 cpu_restore_state(tb, env, pc, puc);
988 TranslationBlock *tb;
1010 tb = tb_find_pc(pc);
1011 if (tb) {
1014 cpu_restore_state(tb, env, pc, puc);
1019 env->PC, env->error_code, tb);
1038 TranslationBlock *tb;
1060 tb = tb_find_pc(pc);
1061 if (tb) {
1064 cpu_restore_state(tb, env, pc, puc);
1069 env->PC, env->error_code, tb);
1088 TranslationBlock *tb;
1110 tb = tb_find_pc(pc);
1111 if (tb) {
1114 cpu_restore_state(tb, env, pc, puc);
1118 env->nip, env->error_code, tb);
1133 TranslationBlock *tb;
1155 tb = tb_find_pc(pc);
1156 if (tb) {
1159 cpu_restore_state(tb, env, pc, puc);
1163 env->nip, env->error_code, tb);
1177 TranslationBlock *tb;
1199 tb = tb_find_pc(pc);
1200 if (tb) {
1203 cpu_restore_state(tb, env, pc, puc);