Lines Matching defs:pc

121     tb = tb_gen_code(env, orig_tb->pc, orig_tb->cs_base, orig_tb->flags,
141 static TranslationBlock *tb_find_slow(target_ulong pc,
153 phys_pc = get_page_addr_code(env, pc);
162 if (tb->pc == pc &&
168 virt_page2 = (pc & TARGET_PAGE_MASK) +
181 tb = tb_gen_code(env, pc, cs_base, flags, 0);
184 /* we add the TB in the virtual pc hash table */
185 env->tb_jmp_cache[tb_jmp_cache_hash_func(pc)] = tb;
192 target_ulong cs_base, pc;
198 cpu_get_tb_cpu_state(env, &pc, &cs_base, &flags);
199 tb = env->tb_jmp_cache[tb_jmp_cache_hash_func(pc)];
200 if (unlikely(!tb || tb->pc != pc || tb->cs_base != cs_base ||
202 tb = tb_find_slow(pc, cs_base, flags);
344 Log(("do_interrupt: vec=%#x int=%d pc=%04x:%RGv\n", env->exception_index, env->exception_is_int,
617 pc contains a magic address. */
746 (void *)tb->tc_ptr, tb->pc,
747 lookup_symbol(tb->pc));
943 /* 'pc' is the host PC at which the exception was raised. 'address' is
947 static inline int handle_cpu_signal(uintptr_t pc, uintptr_t address,
957 qemu_printf("qemu: SIGSEGV pc=0x%08lx address=%08lx w=%d oldset=0x%08lx\n",
958 pc, address, is_write, *(unsigned long *)old_set);
961 if (is_write && page_unprotect(h2g(address), pc, puc)) {
972 tb = tb_find_pc(pc);
976 cpu_restore_state(tb, env, pc, puc);
1034 uintptr_t pc;
1043 pc = EIP_sig(uc);
1045 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,
1081 uintptr_t pc;
1090 pc = PC_sig(uc);
1091 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,
1171 uintptr_t pc;
1174 pc = IAR_sig(uc);
1184 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,
1195 uint32_t *pc = uc->uc_mcontext.sc_pc;
1196 uint32_t insn = *pc;
1215 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,
1230 uintptr_t pc = regs[1];
1234 uintptr_t pc = sc->sigc_regs.tpc;
1238 uintptr_t pc = uc->sc_pc;
1245 insn = *(uint32_t *)pc;
1271 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,
1282 uintptr_t pc;
1286 pc = uc->uc_mcontext.gregs[R15];
1288 pc = uc->uc_mcontext.arm_pc;
1292 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,
1304 uintptr_t pc;
1307 pc = uc->uc_mcontext.gregs[16];
1310 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,
1356 uintptr_t pc;
1360 pc = uc->uc_mcontext.psw.addr;
1369 pinsn = (uint16_t *)pc;
1398 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,
1409 greg_t pc = uc->uc_mcontext.pc;
1414 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,
1425 uintptr_t pc = uc->uc_mcontext.sc_iaoq[0];
1426 uint32_t insn = *(uint32_t *)pc;
1456 return handle_cpu_signal(pc, (uintptr_t)info->si_addr,