/qemu/target/xtensa/ |
H A D | exc_helper.c | 52 env->pc = pc; in HELPER() 55 env->sregs[DEPC] = pc; in HELPER() 57 env->sregs[EPC1] = pc; in HELPER() 61 env->sregs[EPC1] = pc; in HELPER() 75 HELPER(exception_cause)(env, pc, cause); in HELPER() 89 env->pc = pc; in HELPER() 91 env->sregs[EPC1 + level - 1] = pc; in HELPER() 104 env->pc = pc; in HELPER() 180 env->pc = relocated_vector(env, in handle_interrupt() 190 env->sregs[DEPC] = env->pc; in handle_interrupt() [all …]
|
H A D | win_helper.c | 104 void HELPER(entry)(CPUXtensaState *env, uint32_t pc, uint32_t s, uint32_t imm) in HELPER() 113 void HELPER(window_check)(CPUXtensaState *env, uint32_t pc, uint32_t w) in HELPER() 125 env->sregs[EPC1] = env->pc = pc; in HELPER() 140 void HELPER(test_ill_retw)(CPUXtensaState *env, uint32_t pc) in HELPER() 158 pc, env->sregs[PS], m, n); in HELPER() 159 HELPER(exception_cause)(env, pc, ILLEGAL_INSTRUCTION_CAUSE); in HELPER() 163 void HELPER(test_underflow_retw)(CPUXtensaState *env, uint32_t pc) in HELPER() 175 env->sregs[EPC1] = env->pc = pc; in HELPER() 204 void HELPER(movsp)(CPUXtensaState *env, uint32_t pc) in HELPER() 210 HELPER(exception_cause)(env, pc, ALLOCA_CAUSE); in HELPER()
|
/qemu/accel/tcg/ |
H A D | cpu-exec.c | 183 vaddr pc; member 196 if ((tb_cflags(tb) & CF_PCREL || tb->pc == desc->pc) && in tb_lookup_cmp() 240 desc.pc = pc; in tb_htable_lookup() 268 jc->array[hash].pc == pc && in tb_lookup() 280 jc->array[hash].pc = pc; in tb_lookup() 288 assert((tb_cflags(tb) & CF_PCREL) || tb->pc == pc); in tb_lookup() 347 if (pc == bp->pc) { in check_for_breakpoints_slow() 366 } else if (((pc ^ bp->pc) & TARGET_PAGE_MASK) == 0) { in check_for_breakpoints_slow() 408 vaddr pc; in HELPER() local 575 vaddr pc; in cpu_exec_step_atomic() local [all …]
|
H A D | tb-hash.h | 38 static inline unsigned int tb_jmp_cache_hash_page(vaddr pc) in tb_jmp_cache_hash_page() argument 41 tmp = pc ^ (pc >> (TARGET_PAGE_BITS - TB_JMP_PAGE_BITS)); in tb_jmp_cache_hash_page() 45 static inline unsigned int tb_jmp_cache_hash_func(vaddr pc) in tb_jmp_cache_hash_func() argument 48 tmp = pc ^ (pc >> (TARGET_PAGE_BITS - TB_JMP_PAGE_BITS)); in tb_jmp_cache_hash_func() 56 static inline unsigned int tb_jmp_cache_hash_func(vaddr pc) in tb_jmp_cache_hash_func() argument 58 return (pc ^ (pc >> TB_JMP_CACHE_BITS)) & (TB_JMP_CACHE_SIZE - 1); in tb_jmp_cache_hash_func() 64 uint32_t tb_hash_func(tb_page_addr_t phys_pc, vaddr pc, in tb_hash_func() argument 67 return qemu_xxhash8(phys_pc, pc, flags2, flags, cf_mask); in tb_hash_func()
|
H A D | translator.c | 127 db->pc_first = pc; in translator_loop() 128 db->pc_next = pc; in translator_loop() 246 vaddr last = pc + len - 1; in translator_ld() 270 pc += len0; in translator_ld() 326 memcpy(dest, host + (pc - base), len); in translator_ld() 336 if (pc < db->pc_first) { in record_save() 344 offset = pc - db->pc_first; in record_save() 423 raw = cpu_ldub_code(env, pc); in translator_ldub() 436 tgt = cpu_lduw_code(env, pc); in translator_lduw() 450 tgt = cpu_ldl_code(env, pc); in translator_ldl() [all …]
|
H A D | translate-all.c | 179 data[0] = tb->pc; in cpu_unwind_data_from_tb() 267 vaddr pc, void *host_pc, in setjmp_gen_code() argument 283 return tcg_gen_code(tcg_ctx, tb, pc); in setjmp_gen_code() 330 tb->pc = pc; in tb_gen_code() 356 trace_translate_block(tb, pc, tb->tc.ptr); in tb_gen_code() 438 qemu_log_in_addr_range(pc)) { in tb_gen_code() 582 vaddr pc; in tb_check_watchpoint() local 588 addr = get_page_addr_code(env, pc); in tb_check_watchpoint() 637 vaddr pc = cpu->cc->get_pc(cpu); in cpu_io_recompile() local 638 if (qemu_log_in_addr_range(pc)) { in cpu_io_recompile() [all …]
|
H A D | trace-events | 5 exec_tb(void *tb, uintptr_t pc) "tb:%p pc=0x%"PRIxPTR 6 exec_tb_nocache(void *tb, uintptr_t pc) "tb:%p pc=0x%"PRIxPTR 14 translate_block(void *tb, uintptr_t pc, const void *tb_code) "tb:%p, pc:0x%"PRIxPTR", tb_code:%p"
|
H A D | cpu-exec-common.c | 44 void cpu_loop_exit_restore(CPUState *cpu, uintptr_t pc) in cpu_loop_exit_restore() argument 46 if (pc) { in cpu_loop_exit_restore() 47 cpu_restore_state(cpu, pc); in cpu_loop_exit_restore() 52 void cpu_loop_exit_atomic(CPUState *cpu, uintptr_t pc) in cpu_loop_exit_atomic() argument 57 cpu_loop_exit_restore(cpu, pc); in cpu_loop_exit_atomic()
|
/qemu/hw/ppc/ |
H A D | pnv_core.c | 60 env->spr[SPR_HRMOR] = pc->hrmor; in pnv_core_cpu_reset() 66 pcc->intc_reset(pc->chip, cpu); in pnv_core_cpu_reset() 257 PnvCore *pc = PNV_CORE(dev); in pnv_core_reset() local 261 pnv_core_cpu_reset(pc, pc->threads[i]); in pnv_core_reset() 276 assert(pc->chip); in pnv_core_realize() 296 pnv_core_cpu_realize(pc, pc->threads[j], &local_err, j); in pnv_core_realize() 311 obj = OBJECT(pc->threads[i]); in pnv_core_realize() 314 g_free(pc->threads); in pnv_core_realize() 332 PnvCore *pc = PNV_CORE(dev); in pnv_core_unrealize() local 339 pnv_core_cpu_unrealize(pc, pc->threads[i]); in pnv_core_unrealize() [all …]
|
/qemu/docs/devel/migration/ |
H A D | compatibility.rst | 26 - pc-q35-5.2 (newer one in qemu-5.2) from now on pc-5.2 27 - pc-q35-5.1 (newer one in qemu-5.1) from now on pc-5.1 330 - $ qemu-7.2 -M pc-7.2 -> qemu-7.2 -M pc-7.2 334 - $ qemu-8.0 -M pc-7.2 -> qemu-8.0 -M pc-7.2 338 - $ qemu-8.0 -M pc-7.2 -> qemu-7.2 -M pc-7.2 342 - $ qemu-7.2 -M pc-7.2 -> qemu-8.0 -M pc-7.2 468 - $ qemu-7.2 -M pc-7.2 -> qemu-7.2 -M pc-7.2 469 - $ qemu-8.0 -M pc-7.2 -> qemu-8.0 -M pc-7.2 476 - $ qemu-7.2 -M pc-7.2 -> qemu-8.0 -M pc-7.2 477 - $ qemu-8.0 -M pc-7.2 -> qemu-7.2 -M pc-7.2 [all …]
|
/qemu/hw/char/ |
H A D | serial-pci-multi.c | 83 switch (pc->device_id) { in multi_serial_get_port_count() 154 PCIDeviceClass *pc = PCI_DEVICE_CLASS(klass); in multi_2x_serial_pci_class_initfn() local 155 pc->realize = multi_serial_pci_realize; in multi_2x_serial_pci_class_initfn() 156 pc->exit = multi_serial_pci_exit; in multi_2x_serial_pci_class_initfn() 157 pc->vendor_id = PCI_VENDOR_ID_REDHAT; in multi_2x_serial_pci_class_initfn() 158 pc->device_id = PCI_DEVICE_ID_REDHAT_SERIAL2; in multi_2x_serial_pci_class_initfn() 159 pc->revision = 1; in multi_2x_serial_pci_class_initfn() 170 pc->realize = multi_serial_pci_realize; in multi_4x_serial_pci_class_initfn() 171 pc->exit = multi_serial_pci_exit; in multi_4x_serial_pci_class_initfn() 172 pc->vendor_id = PCI_VENDOR_ID_REDHAT; in multi_4x_serial_pci_class_initfn() [all …]
|
/qemu/include/exec/ |
H A D | translator.h | 36 vaddr pc, void *host_pc); 164 vaddr pc, void *host_pc, const TranslatorOps *ops, 198 uint8_t translator_ldub(CPUArchState *env, DisasContextBase *db, vaddr pc); 200 uint32_t translator_ldl(CPUArchState *env, DisasContextBase *db, vaddr pc); 201 uint64_t translator_ldq(CPUArchState *env, DisasContextBase *db, vaddr pc); 205 vaddr pc, bool do_swap) in translator_lduw_swap() argument 207 uint16_t ret = translator_lduw(env, db, pc); in translator_lduw_swap() 216 vaddr pc, bool do_swap) in translator_ldl_swap() argument 218 uint32_t ret = translator_ldl(env, db, pc); in translator_ldl_swap() 227 vaddr pc, bool do_swap) in translator_ldq_swap() argument [all …]
|
/qemu/target/microblaze/ |
H A D | helper.c | 128 env->pc, msr, env->iflags); in mb_cpu_do_interrupt() 140 env->regs[17] = env->pc + 4; in mb_cpu_do_interrupt() 141 env->pc = cpu->cfg.base_vectors + 0x20; in mb_cpu_do_interrupt() 160 env->regs[17] = env->pc - 4; in mb_cpu_do_interrupt() 162 env->regs[17] = env->pc; in mb_cpu_do_interrupt() 167 env->pc = cpu->cfg.base_vectors + 0x20; in mb_cpu_do_interrupt() 182 env->regs[14] = env->pc; in mb_cpu_do_interrupt() 183 env->pc = cpu->cfg.base_vectors + 0x10; in mb_cpu_do_interrupt() 196 env->regs[16] = env->pc; in mb_cpu_do_interrupt() 197 env->pc = cpu->cfg.base_vectors + 0x18; in mb_cpu_do_interrupt() [all …]
|
/qemu/disas/ |
H A D | capstone.c | 198 while (cs_disasm_iter(handle, &cbuf, &csize, &pc, insn)) { in cap_disas_target() 243 uint64_t pc; in cap_disas_host() local 251 pc = (uintptr_t)code; in cap_disas_host() 253 while (cs_disasm_iter(handle, &cbuf, &size, &pc, insn)) { in cap_disas_host() 267 bool cap_disas_monitor(disassemble_info *info, uint64_t pc, int count) in cap_disas_monitor() argument 289 uint64_t epc = QEMU_ALIGN_UP(pc + csize + 1, 1024); in cap_disas_monitor() 290 size_t tsize = MIN(sizeof(cap_buf) - csize, epc - pc); in cap_disas_monitor() 295 if (info->read_memory_func(pc + csize, cap_buf + csize, in cap_disas_monitor() 300 if (cs_disasm_iter(handle, &cbuf, &csize, &pc, insn)) { in cap_disas_monitor() 330 info->read_memory_func(pc, cap_buf, size, info); in cap_disas_plugin() [all …]
|
H A D | objdump.c | 10 static int print_insn_objdump(bfd_vma pc, disassemble_info *info, in print_insn_objdump() argument 16 if (info->read_memory_func(pc, buf, n, info) == 0) { in print_insn_objdump() 29 int print_insn_od_host(bfd_vma pc, disassemble_info *info) in print_insn_od_host() argument 31 return print_insn_objdump(pc, info, "OBJD-H"); in print_insn_od_host() 34 int print_insn_od_target(bfd_vma pc, disassemble_info *info) in print_insn_od_target() argument 36 return print_insn_objdump(pc, info, "OBJD-T"); in print_insn_od_target()
|
H A D | disas-mon.c | 40 void monitor_disas(Monitor *mon, CPUState *cpu, uint64_t pc, in monitor_disas() argument 57 s.info.buffer_vma = pc; in monitor_disas() 59 if (s.info.cap_arch >= 0 && cap_disas_monitor(&s.info, pc, nb_insn)) { in monitor_disas() 66 ": Asm output not supported on this arch\n", pc); in monitor_disas() 71 g_string_append_printf(ds, "0x%08" PRIx64 ": ", pc); in monitor_disas() 72 count = s.info.print_insn(pc, &s.info); in monitor_disas() 77 pc += count; in monitor_disas()
|
/qemu/roms/ |
H A D | Makefile | 80 cp seabios/builds/seabios-128k/bios.bin ../pc-bios/bios.bin 112 cp ipxe/src/bin/$(VID)$(DID).rom ../pc-bios/pxe-$*.rom 120 -o ../pc-bios/efi-$*.rom 134 cp SLOF/boot_rom.bin ../pc-bios/slof.bin 141 ../pc-bios/u-boot.e500 150 cp skiboot/skiboot.lid ../pc-bios/skiboot.lid 165 rm -f ../pc-bios/edk2-*.fd.bz2 166 bzip2 --verbose ../pc-bios/edk2-*.fd 186 cp qboot/build/bios.bin ../pc-bios/qboot.rom 194 cp seabios-hppa/out/hppa-firmware.img ../pc-bios/ [all …]
|
/qemu/linux-user/alpha/ |
H A D | cpu_loop.c | 57 force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLOPC, env->pc); in cpu_loop() 60 force_sig_fault(TARGET_SIGFPE, TARGET_FPE_FLTINV, env->pc); in cpu_loop() 82 env->pc -= 4; in cpu_loop() 138 force_sig_fault(TARGET_SIGFPE, si_code, env->pc); in cpu_loop() 146 force_sig_fault(TARGET_SIGTRAP, TARGET_TRAP_BRKPT, env->pc); in cpu_loop() 149 force_sig_fault(TARGET_SIGTRAP, TARGET_TRAP_UNK, env->pc); in cpu_loop() 184 env->pc = regs->pc; in target_cpu_copy_regs()
|
/qemu/target/cris/ |
H A D | helper.c | 117 env->pregs[PRV10_BRP] = env->pc; in crisv10_cpu_do_interrupt() 124 env->pregs[PRV10_BRP] = env->pc; in crisv10_cpu_do_interrupt() 136 env->pregs[PR_ERP] = env->pc; in crisv10_cpu_do_interrupt() 147 env->pc = cpu_ldl_code(env, env->pregs[PR_EBP] + ex_vec * 4); in crisv10_cpu_do_interrupt() 152 __func__, env->pc, ex_vec, in crisv10_cpu_do_interrupt() 172 env->pregs[PR_ERP] = env->pc; in cris_cpu_do_interrupt() 179 env->pregs[PR_NRP] = env->pc; in cris_cpu_do_interrupt() 184 env->pregs[PR_ERP] = env->pc; in cris_cpu_do_interrupt() 192 env->pregs[PR_ERP] = env->pc; in cris_cpu_do_interrupt() 202 ex_vec, env->pc, env->dslot, in cris_cpu_do_interrupt() [all …]
|
/qemu/linux-user/loongarch64/ |
H A D | cpu_loop.c | 31 env->pc += 4; in cpu_loop() 38 env->pc -= 4; in cpu_loop() 51 force_sig_fault(TARGET_SIGILL, 0, env->pc); in cpu_loop() 66 force_sig_fault(TARGET_SIGFPE, si_code, env->pc); in cpu_loop() 70 force_sig_fault(TARGET_SIGTRAP, TARGET_TRAP_BRKPT, env->pc); in cpu_loop() 73 force_sig_fault(TARGET_SIGSYS, TARGET_SI_KERNEL, env->pc); in cpu_loop() 107 env->pc = regs->csr.era; in target_cpu_copy_regs()
|
/qemu/hw/cxl/ |
H A D | switch-mailbox-cci.c | 77 PCIDeviceClass *pc = PCI_DEVICE_CLASS(oc); in cswmbcci_class_init() local 79 pc->realize = cswbcci_realize; in cswmbcci_class_init() 80 pc->exit = cswmbcci_exit; in cswmbcci_class_init() 82 pc->class_id = 0x0c0b; in cswmbcci_class_init() 88 pc->vendor_id = 0x19e5; in cswmbcci_class_init() 89 pc->device_id = 0xa123; in cswmbcci_class_init() 90 pc->revision = 0; in cswmbcci_class_init()
|
/qemu/scripts/ |
H A D | undefsym.py | 34 pc = subprocess.run([nm, "-P", "-g", staticlib], stdout=subprocess.PIPE) 35 if pc.returncode != 0: 37 staticlib_syms = filter_lines_set(pc.stdout, True) 40 pc = subprocess.run([nm, "-P", "-g"] + shared_modules, stdout=subprocess.PIPE) 41 if pc.returncode != 0: 43 modules_undef_syms = filter_lines_set(pc.stdout, False)
|
/qemu/contrib/plugins/ |
H A D | lockstep.c | 46 uint64_t pc; member 59 uint64_t pc; member 140 us->pc, them->pc, g_slist_length(divergence_log), in report_divergance() 152 us->pc, us->insn_count, them->pc, them->insn_count); in report_divergance() 161 prev->block->pc, prev->block->insns, in report_divergance() 177 us.pc = bi->pc; in vcpu_tb_exec() 209 if (us.pc != them.pc) { in vcpu_tb_exec() 229 bi->pc = qemu_plugin_tb_vaddr(tb); in vcpu_tb_trans()
|
/qemu/linux-user/openrisc/ |
H A D | cpu_loop.c | 40 env->pc += 4; /* 0xc00; */ in cpu_loop() 50 env->pc -= 4; in cpu_loop() 59 force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLOPC, env->pc); in cpu_loop() 65 force_sig_fault(TARGET_SIGTRAP, TARGET_TRAP_BRKPT, env->pc); in cpu_loop() 93 env->pc = regs->pc; in target_cpu_copy_regs()
|
/qemu/linux-user/sparc/ |
H A D | cpu_loop.c | 154 env->pc = env->npc; in next_instruction() 243 env->pc = env->npc; in cpu_loop() 254 force_sig_fault(TARGET_SIGFPE, TARGET_FPE_INTDIV, env->pc); in cpu_loop() 311 force_sig_fault(TARGET_SIGFPE, code, env->pc); in cpu_loop() 319 force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLOPC, env->pc); in cpu_loop() 322 force_sig_fault(TARGET_SIGILL, TARGET_ILL_PRVOPC, env->pc); in cpu_loop() 325 force_sig_fault(TARGET_SIGEMT, TARGET_EMT_TAGOVF, env->pc); in cpu_loop() 330 force_sig_fault(TARGET_SIGILL, TARGET_ILL_PRVOPC, env->pc); in cpu_loop() 334 force_sig_fault(TARGET_SIGILL, TARGET_ILL_COPROC, env->pc); in cpu_loop() 349 force_sig_fault(TARGET_SIGILL, ILL_ILLTRP, env->pc); in cpu_loop() [all …]
|