Home
last modified time | relevance | path

Searched refs:exception_index (Results 1 – 25 of 93) sorted by relevance

1234

/qemu/target/i386/tcg/
A Dexcp_helper.c34 G_NORETURN void helper_raise_exception(CPUX86State *env, int exception_index) in helper_raise_exception() argument
36 raise_exception(env, exception_index); in helper_raise_exception()
106 cs->exception_index = intno; in raise_interrupt2()
120 G_NORETURN void raise_exception_err(CPUX86State *env, int exception_index, in raise_exception_err() argument
123 raise_interrupt2(env, exception_index, 0, error_code, 0, 0); in raise_exception_err()
129 raise_interrupt2(env, exception_index, 0, error_code, 0, retaddr); in raise_exception_err_ra()
132 G_NORETURN void raise_exception(CPUX86State *env, int exception_index) in raise_exception() argument
134 raise_interrupt2(env, exception_index, 0, 0, 0, 0); in raise_exception()
137 G_NORETURN void raise_exception_ra(CPUX86State *env, int exception_index, in raise_exception_ra() argument
140 raise_interrupt2(env, exception_index, 0, 0, 0, retaddr); in raise_exception_ra()
[all …]
A Dhelper-tcg.h64 G_NORETURN void raise_exception(CPUX86State *env, int exception_index);
65 G_NORETURN void raise_exception_ra(CPUX86State *env, int exception_index,
67 G_NORETURN void raise_exception_err(CPUX86State *env, int exception_index,
69 G_NORETURN void raise_exception_err_ra(CPUX86State *env, int exception_index,
/qemu/target/sparc/
A Dint32_helper.c60 static const char *excp_name_str(int32_t exception_index) in excp_name_str() argument
62 if (exception_index < 0 || exception_index >= ARRAY_SIZE(excp_names)) { in excp_name_str()
65 return excp_names[exception_index]; in excp_name_str()
103 int cwp, intno = cs->exception_index; in sparc_cpu_do_interrupt()
123 if (cs->exception_index == 0x80 && in sparc_cpu_do_interrupt()
129 cs->exception_index, excp_name_str(cs->exception_index)); in sparc_cpu_do_interrupt()
167 cs->exception_index = -1; in sparc_cpu_do_interrupt()
A Dhelper.c31 cs->exception_index = tt; in cpu_raise_exception_ra()
39 cs->exception_index = tt; in helper_raise_exception()
47 cs->exception_index = EXCP_DEBUG; in helper_debug()
210 cs->exception_index = EXCP_HLT; in helper_power_down()
A Dmmu_helper.c252 cs->exception_index = TT_TFAULT; in sparc_cpu_tlb_fill()
254 cs->exception_index = TT_DFAULT; in sparc_cpu_tlb_fill()
606 cs->exception_index = TT_DFAULT; in get_physical_address_data()
609 cs->exception_index = TT_DPROT; in get_physical_address_data()
640 cs->exception_index = TT_DMISS; in get_physical_address_data()
698 cs->exception_index = TT_TFAULT; in get_physical_address_code()
716 cs->exception_index = TT_TMISS; in get_physical_address_code()
A Dint64_helper.c134 int intno = cs->exception_index; in sparc_cpu_do_interrupt()
180 " Error state", cs->exception_index, env->tl, env->maxtl); in sparc_cpu_do_interrupt()
255 cs->exception_index = -1; in sparc_cpu_do_interrupt()
/qemu/target/xtensa/
A Dexc_helper.c41 cs->exception_index = excp; in HELPER()
194 cs->exception_index = EXC_DOUBLE; in handle_interrupt()
197 cs->exception_index = in handle_interrupt()
210 if (cs->exception_index == EXC_IRQ) { in xtensa_cpu_do_interrupt()
224 switch (cs->exception_index) { in xtensa_cpu_do_interrupt()
237 __func__, cs->exception_index, in xtensa_cpu_do_interrupt()
240 if (env->config->exception_vector[cs->exception_index]) { in xtensa_cpu_do_interrupt()
243 vector = env->config->exception_vector[cs->exception_index]; in xtensa_cpu_do_interrupt()
248 __func__, env->pc, cs->exception_index); in xtensa_cpu_do_interrupt()
257 __func__, env->pc, cs->exception_index); in xtensa_cpu_do_interrupt()
[all …]
/qemu/target/s390x/tcg/
A Dexcp_helper.c100 cs->exception_index = -1; in s390_cpu_do_interrupt()
507 cs->exception_index = EXCP_MCHK; in s390_cpu_do_interrupt()
511 cs->exception_index = EXCP_EXT; in s390_cpu_do_interrupt()
514 if (cs->exception_index == -1 && s390_cpu_has_io_int(cpu)) { in s390_cpu_do_interrupt()
515 cs->exception_index = EXCP_IO; in s390_cpu_do_interrupt()
519 cs->exception_index = EXCP_RESTART; in s390_cpu_do_interrupt()
523 cs->exception_index = EXCP_STOP; in s390_cpu_do_interrupt()
526 switch (cs->exception_index) { in s390_cpu_do_interrupt()
551 if (cs->exception_index != -1 && !stopped) { in s390_cpu_do_interrupt()
553 cs->exception_index = -1; in s390_cpu_do_interrupt()
[all …]
/qemu/target/avr/
A Dhelper.c47 cs->exception_index = EXCP_RESET; in avr_cpu_exec_interrupt()
57 cs->exception_index = EXCP_INT(index); in avr_cpu_exec_interrupt()
79 if (cs->exception_index == EXCP_RESET) { in avr_cpu_do_interrupt()
99 cs->exception_index = -1; in avr_cpu_do_interrupt()
164 cs->exception_index = EXCP_HLT; in helper_sleep()
176 cs->exception_index = EXCP_DEBUG; in helper_unsupported()
188 cs->exception_index = EXCP_DEBUG; in helper_debug()
196 cs->exception_index = EXCP_DEBUG; in helper_break()
/qemu/target/ppc/
A Dmmu-hash32.c127 cs->exception_index = POWERPC_EXCP_ISI; in ppc_hash32_direct_store()
143 cs->exception_index = POWERPC_EXCP_ALIGN; in ppc_hash32_direct_store()
168 cs->exception_index = POWERPC_EXCP_DSI; in ppc_hash32_direct_store()
192 cs->exception_index = POWERPC_EXCP_DSI; in ppc_hash32_direct_store()
324 cs->exception_index = POWERPC_EXCP_ISI; in ppc_hash32_xlate()
327 cs->exception_index = POWERPC_EXCP_DSI; in ppc_hash32_xlate()
356 cs->exception_index = POWERPC_EXCP_ISI; in ppc_hash32_xlate()
367 cs->exception_index = POWERPC_EXCP_ISI; in ppc_hash32_xlate()
370 cs->exception_index = POWERPC_EXCP_DSI; in ppc_hash32_xlate()
394 cs->exception_index = POWERPC_EXCP_ISI; in ppc_hash32_xlate()
[all …]
A Dmmu_common.c628 cs->exception_index = POWERPC_EXCP_ITLB; in ppc_40x_xlate()
635 cs->exception_index = POWERPC_EXCP_ISI; in ppc_40x_xlate()
645 cs->exception_index = POWERPC_EXCP_DTLB; in ppc_40x_xlate()
656 cs->exception_index = POWERPC_EXCP_DSI; in ppc_40x_xlate()
709 cs->exception_index = POWERPC_EXCP_IFTLB; in ppc_6xx_xlate()
716 cs->exception_index = POWERPC_EXCP_ISI; in ppc_6xx_xlate()
721 cs->exception_index = POWERPC_EXCP_ISI; in ppc_6xx_xlate()
727 cs->exception_index = POWERPC_EXCP_ISI; in ppc_6xx_xlate()
753 cs->exception_index = POWERPC_EXCP_DSI; in ppc_6xx_xlate()
773 cs->exception_index = POWERPC_EXCP_DSI; in ppc_6xx_xlate()
[all …]
A Dmmu-radix64.c124 cs->exception_index = POWERPC_EXCP_ISEG; in ppc_radix64_raise_segi()
129 cs->exception_index = POWERPC_EXCP_DSEG; in ppc_radix64_raise_segi()
157 cs->exception_index = POWERPC_EXCP_ISI; in ppc_radix64_raise_si()
165 cs->exception_index = POWERPC_EXCP_DSI; in ppc_radix64_raise_si()
196 cs->exception_index = POWERPC_EXCP_HISI; in ppc_radix64_raise_hsi()
205 cs->exception_index = POWERPC_EXCP_HDSI; in ppc_radix64_raise_hsi()
/qemu/target/sh4/
A Dhelper.c65 do_exp = cs->exception_index != -1; in superh_cpu_do_interrupt()
95 switch (cs->exception_index) { in superh_cpu_do_interrupt()
159 switch (cs->exception_index) { in superh_cpu_do_interrupt()
825 cs->exception_index = 0x040; in superh_cpu_tlb_fill()
829 cs->exception_index = 0x140; in superh_cpu_tlb_fill()
832 cs->exception_index = 0x0a0; in superh_cpu_tlb_fill()
835 cs->exception_index = 0x060; in superh_cpu_tlb_fill()
838 cs->exception_index = 0x080; in superh_cpu_tlb_fill()
841 cs->exception_index = 0x0a0; in superh_cpu_tlb_fill()
844 cs->exception_index = 0x0c0; in superh_cpu_tlb_fill()
[all …]
/qemu/accel/tcg/
A Dcpu-exec.c505 cpu->exception_index = EXCP_DEBUG; in cpu_tb_exec()
713 if (cpu->exception_index < 0) { in cpu_handle_exception()
727 *ret = cpu->exception_index; in cpu_handle_exception()
731 cpu->exception_index = -1; in cpu_handle_exception()
744 *ret = cpu->exception_index; in cpu_handle_exception()
745 cpu->exception_index = -1; in cpu_handle_exception()
754 cpu->exception_index = -1; in cpu_handle_exception()
816 cpu->exception_index = EXCP_DEBUG; in cpu_handle_interrupt()
827 cpu->exception_index = EXCP_HLT; in cpu_handle_interrupt()
872 cpu->exception_index = -1; in cpu_handle_interrupt()
[all …]
A Dcpu-exec-common.c31 cpu->exception_index = -1; in cpu_loop_exit_noexc()
56 cpu->exception_index = EXCP_ATOMIC; in cpu_loop_exit_atomic()
/qemu/target/microblaze/
A Dhelper.c95 if (cs->exception_index == EXCP_MMU) { in mb_cpu_tlb_fill()
100 cs->exception_index = EXCP_MMU; in mb_cpu_tlb_fill()
118 switch (cs->exception_index) { in mb_cpu_do_interrupt()
201 cpu_abort(cs, "unhandled exception type=%d\n", cs->exception_index); in mb_cpu_do_interrupt()
262 cs->exception_index = EXCP_IRQ; in mb_cpu_exec_interrupt()
295 cs->exception_index = EXCP_HW_EXCP; in mb_cpu_do_unaligned_access()
/qemu/target/openrisc/
A Dinterrupt.c33 int exception = cs->exception_index; in openrisc_cpu_do_interrupt()
102 cs->exception_index = -1; in openrisc_cpu_do_interrupt()
117 cs->exception_index = idx; in openrisc_cpu_exec_interrupt()
/qemu/target/loongarch/tcg/
A Dtlb_helper.c57 cs->exception_index = access_type == MMU_INST_FETCH in raise_mmu_exception()
63 cs->exception_index = EXCCODE_PIL; in raise_mmu_exception()
65 cs->exception_index = EXCCODE_PIS; in raise_mmu_exception()
67 cs->exception_index = EXCCODE_PIF; in raise_mmu_exception()
74 cs->exception_index = EXCCODE_PIL; in raise_mmu_exception()
76 cs->exception_index = EXCCODE_PIS; in raise_mmu_exception()
78 cs->exception_index = EXCCODE_PIF; in raise_mmu_exception()
83 cs->exception_index = EXCCODE_PME; in raise_mmu_exception()
87 cs->exception_index = EXCCODE_PNX; in raise_mmu_exception()
91 cs->exception_index = EXCCODE_PNR; in raise_mmu_exception()
[all …]
/qemu/target/riscv/
A Dcpu_helper.c1298 cs->exception_index = RISCV_EXCP_INST_ACCESS_FAULT; in raise_mmu_exception()
1302 cs->exception_index = RISCV_EXCP_INST_PAGE_FAULT; in raise_mmu_exception()
1307 cs->exception_index = RISCV_EXCP_LOAD_ACCESS_FAULT; in raise_mmu_exception()
1311 cs->exception_index = RISCV_EXCP_LOAD_PAGE_FAULT; in raise_mmu_exception()
1320 cs->exception_index = RISCV_EXCP_STORE_PAGE_FAULT; in raise_mmu_exception()
1366 cs->exception_index = RISCV_EXCP_LOAD_ACCESS_FAULT; in riscv_cpu_do_transaction_failed()
1368 cs->exception_index = RISCV_EXCP_INST_ACCESS_FAULT; in riscv_cpu_do_transaction_failed()
1385 cs->exception_index = RISCV_EXCP_INST_ADDR_MIS; in riscv_cpu_do_unaligned_access()
1388 cs->exception_index = RISCV_EXCP_LOAD_ADDR_MIS; in riscv_cpu_do_unaligned_access()
1391 cs->exception_index = RISCV_EXCP_LOAD_ACCESS_FAULT; in riscv_cpu_do_unaligned_access()
[all …]
/qemu/target/hppa/
A Dint_helper.c96 int i = cs->exception_index; in hppa_cpu_do_interrupt()
261 cs->exception_index = -1; in hppa_cpu_do_interrupt()
272 cs->exception_index = EXCP_TOC; in hppa_cpu_exec_interrupt()
281 cs->exception_index = EXCP_EXT_INTERRUPT; in hppa_cpu_exec_interrupt()
/qemu/target/alpha/
A Dhelper.c311 cs->exception_index = EXCP_MMFAULT; in alpha_cpu_tlb_fill()
328 int i = cs->exception_index; in alpha_cpu_do_interrupt()
375 cs->exception_index = -1; in alpha_cpu_do_interrupt()
469 cs->exception_index = idx; in alpha_cpu_exec_interrupt()
517 cs->exception_index = excp; in helper_excp()
528 cs->exception_index = excp; in dynamic_excp()
A Dmem_helper.c55 cs->exception_index = EXCP_UNALIGN; in alpha_cpu_do_unaligned_access()
70 cs->exception_index = EXCP_MCHK; in alpha_cpu_do_transaction_failed()
/qemu/target/loongarch/
A Dcpu.c99 cs->exception_index = exception; in do_raise_exception()
172 if (cs->exception_index != EXCCODE_INT) { in loongarch_cpu_do_interrupt()
177 cs->exception_index, in loongarch_cpu_do_interrupt()
181 switch (cs->exception_index) { in loongarch_cpu_do_interrupt()
199 cause = cs->exception_index; in loongarch_cpu_do_interrupt()
220 cause = cs->exception_index; in loongarch_cpu_do_interrupt()
224 cs->exception_index); in loongarch_cpu_do_interrupt()
263 if (cs->exception_index == EXCCODE_INT) { in loongarch_cpu_do_interrupt()
300 cs->exception_index = -1; in loongarch_cpu_do_interrupt()
327 cs->exception_index = EXCCODE_INT; in loongarch_cpu_exec_interrupt()
[all …]
/qemu/target/m68k/
A Dop_helper.c200 switch (cs->exception_index) { in cf_interrupt_all()
211 vector = cs->exception_index << 2; in cf_interrupt_all()
217 ++count, m68k_exception_name(cs->exception_index), in cf_interrupt_all()
283 switch (cs->exception_index) { in m68k_interrupt_all()
291 vector = cs->exception_index << 2; in m68k_interrupt_all()
297 ++count, m68k_exception_name(cs->exception_index), in m68k_interrupt_all()
322 switch (cs->exception_index) { in m68k_interrupt_all()
493 cs->exception_index = EXCP_ACCESS; in m68k_cpu_transaction_failed()
510 cs->exception_index = env->pending_vector; in m68k_cpu_exec_interrupt()
524 cs->exception_index = tt; in raise_exception_ra()
[all …]
/qemu/target/i386/tcg/user/
A Dseg_helper.c33 cs->exception_index = EXCP_SYSCALL; in helper_syscall()
87 do_interrupt_user(env, cs->exception_index, in x86_cpu_do_interrupt()

Completed in 53 milliseconds

1234