Home
last modified time | relevance | path

Searched refs:scause (Results 1 – 14 of 14) sorted by relevance

/freebsd/sys/riscv/vmm/
H A Dvmm_riscv.c306 if (trap->scause == -1 && (val & 0x3) == 0x3) { in riscv_unpriv_read()
341 KASSERT(vme_ret->scause == SCAUSE_FETCH_GUEST_PAGE_FAULT || in riscv_gen_inst_emul_data()
342 vme_ret->scause == SCAUSE_LOAD_GUEST_PAGE_FAULT || in riscv_gen_inst_emul_data()
343 vme_ret->scause == SCAUSE_STORE_GUEST_PAGE_FAULT, in riscv_gen_inst_emul_data()
346 direction = vme_ret->scause == SCAUSE_STORE_GUEST_PAGE_FAULT ? in riscv_gen_inst_emul_data()
352 trap->scause = -1; in riscv_gen_inst_emul_data()
354 if (trap->scause != -1) in riscv_gen_inst_emul_data()
460 if (vme->scause & SCAUSE_INTR) { in riscv_handle_world_switch()
470 switch (vme->scause) { in riscv_handle_world_switch()
483 vme->u.hyp.scause = trap.scause; in riscv_handle_world_switch()
[all …]
H A Driscv.h119 uint64_t scause; member
139 DEFINE_VMMOPS_IFUNC(int, exception, (void *vcpui, uint64_t scause))
H A Dvmm_dev_machdep.c95 error = vm_inject_exception(vcpu, vmexc->scause); in vmmdev_machdep_ioctl()
H A Dvmm.c1001 vm_inject_exception(struct vcpu *vcpu, uint64_t scause) in vm_inject_exception() argument
1004 return (vmmops_exception(vcpu->cookie, scause)); in vm_inject_exception()
1088 switch (vme->scause) { in vm_handle_paging()
1099 panic("unknown page trap: %lu", vme->scause); in vm_handle_paging()
H A Dvmm_switch.S211 csrr a1, scause
/freebsd/lib/libvmmapi/riscv/
H A Dvmmapi_machdep.c110 vm_inject_exception(struct vcpu *vcpu, uint64_t scause) in vm_inject_exception() argument
115 vmexc.scause = scause; in vm_inject_exception()
/freebsd/sys/riscv/include/
H A Dvmm.h153 int vm_inject_exception(struct vcpu *vcpu, uint64_t scause);
265 uint64_t scause; member
293 uint64_t scause; member
H A Dvmm_dev.h83 uint64_t scause; member
H A Dencoding.h1065 DECLARE_CSR(scause, CSR_SCAUSE)
/freebsd/sys/riscv/riscv/
H A Dgenassym.c130 ASSYM(HYP_TRAP_SCAUSE, offsetof(struct hyptrap, scause));
H A Dexception.S112 csrr t0, scause
/freebsd/usr.sbin/bhyve/riscv/
H A Dvmexit.c351 printf("unhandled exception: scause %#lx\n", vme->u.hyp.scause); in vmexit_hyp()
/freebsd/lib/libvmmapi/
H A Dvmmapi.h173 int vm_inject_exception(struct vcpu *vcpu, uint64_t scause);
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVSystemOperands.td125 def : SysReg<"scause", 0x142>;