Home
last modified time | relevance | path

Searched refs:tf_sepc (Results 1 – 15 of 15) sorted by relevance

/freebsd/sys/cddl/dev/kinst/riscv/
H A Dkinst_isa.c95 rd = frame->tf_sepc + INSN_SIZE; in kinst_emulate()
96 frame->tf_sepc += imm; in kinst_emulate()
99 prevpc = frame->tf_sepc; in kinst_emulate()
103 frame->tf_sepc = (rs1_lval + imm) & ~1; in kinst_emulate()
119 frame->tf_sepc += imm; in kinst_emulate()
121 frame->tf_sepc += INSN_SIZE; in kinst_emulate()
125 frame->tf_sepc += imm; in kinst_emulate()
127 frame->tf_sepc += INSN_SIZE; in kinst_emulate()
131 frame->tf_sepc += imm; in kinst_emulate()
133 frame->tf_sepc += INSN_SIZE; in kinst_emulate()
[all …]
/freebsd/sys/riscv/riscv/
H A Dtrap.c187 print_with_symbol("sepc", frame->tf_sepc); in dump_regs()
279 frame->tf_sepc = pcb->pcb_onfault; in page_fault_handler()
302 panic("Fatal page fault at %#lx: %#lx", frame->tf_sepc, stval); in page_fault_handler()
330 exception, frame->tf_sepc, frame->tf_stval); in do_trap_supervisor()
338 frame->tf_sepc, frame->tf_stval); in do_trap_supervisor()
345 frame->tf_sepc, frame->tf_stval); in do_trap_supervisor()
369 frame->tf_stval, frame->tf_sepc); in do_trap_supervisor()
407 exception, frame->tf_sepc, frame->tf_stval); in do_trap_user()
413 call_trapsignal(td, SIGBUS, BUS_ADRERR, (void *)frame->tf_sepc, in do_trap_user()
420 call_trapsignal(td, SIGBUS, BUS_ADRALN, (void *)frame->tf_sepc, in do_trap_user()
[all …]
H A Dexec_machdep.c84 regs->sepc = frame->tf_sepc; in fill_regs()
104 frame->tf_sepc = regs->sepc; in set_regs()
186 tf->tf_sepc = imgp->entry_addr; in exec_setregs()
223 mcp->mc_gpregs.gp_sepc = tf->tf_sepc; in get_mcontext()
257 tf->tf_sepc = mcp->mc_gpregs.gp_sepc; in set_mcontext()
398 tf->tf_sepc = (register_t)catcher; in sendsig()
408 CTR3(KTR_SIG, "sendsig: return td=%p pc=%#x sp=%#x", td, tf->tf_sepc, in sendsig()
H A Dgdb_machdep.c51 case GDB_REG_PC: return (&kdb_frame->tf_sepc); in gdb_cpu_getreg()
90 case GDB_REG_PC: kdb_frame->tf_sepc = regval; break; in gdb_cpu_setreg()
H A Dvm_machdep.c132 frame->tf_sepc -= 4; /* prev instruction */ in cpu_set_syscall_retval()
180 tf->tf_sepc = (register_t)entry;
H A Dptrace_machdep.c68 td->td_frame->tf_sepc = addr; in ptrace_set_pc()
H A Ddb_trace.c107 frame->pc = tf->tf_sepc; in db_stack_trace_cmd()
H A Ddb_interface.c96 { "sepc", DB_OFFSET(tf_sepc), db_frame },
H A Dgenassym.c98 ASSYM(TF_SEPC, offsetof(struct trapframe, tf_sepc));
H A Dmachdep.c279 pcb->pcb_ra = tf->tf_sepc; in makectx()
/freebsd/sys/cddl/dev/dtrace/riscv/
H A Ddtrace_subr.c218 frame->tf_sepc += in dtrace_trap()
219 dtrace_instr_size((uint8_t *)frame->tf_sepc); in dtrace_trap()
250 invop = dtrace_invop(frame->tf_sepc, frame); in dtrace_invop_start()
261 frame->tf_sepc += INSN_SIZE; in dtrace_invop_start()
268 frame->tf_sepc = frame->tf_ra; in dtrace_invop_start()
279 frame->tf_sepc += INSN_C_SIZE; in dtrace_invop_start()
286 frame->tf_sepc = frame->tf_ra; in dtrace_invop_start()
H A Ddtrace_isa.c204 pc = tf->tf_sepc; in dtrace_getupcstack()
249 pc = tf->tf_sepc; in dtrace_getustackdepth()
343 return (frame->tf_sepc); in dtrace_getreg()
/freebsd/sys/riscv/include/
H A Ddb_machdep.h48 #define PC_REGS() ((db_addr_t)kdb_frame->tf_sepc)
59 kdb_frame->tf_sepc += 4; /* ebreak */ \
61 kdb_frame->tf_sepc += 2; /* c.ebreak */ \
H A Dframe.h54 uint64_t tf_sepc; member
H A Dcpu.h42 #define TRAPF_PC(tfp) ((tfp)->tf_sepc)