Home
last modified time | relevance | path

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

/src/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 Dvmm.c502 vm_inject_exception(struct vcpu *vcpu, uint64_t scause) in vm_inject_exception() argument
505 return (vmmops_exception(vcpu->cookie, scause)); in vm_inject_exception()
593 switch (vme->scause) { in vm_handle_paging()
604 panic("unknown page trap: %lu", vme->scause); in vm_handle_paging()
H A Driscv.h119 uint64_t scause; member
H A Dvmm_dev_machdep.c92 error = vm_inject_exception(vcpu, vmexc->scause); in vmmdev_machdep_ioctl()
H A Dvmm_switch.S211 csrr a1, scause
/src/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()
/src/sys/riscv/include/ !
H A Dvmm.h149 DECLARE_VMMOPS_FUNC(int, exception, (void *vcpui, uint64_t scause));
165 int vm_inject_exception(struct vcpu *vcpu, uint64_t scause);
221 uint64_t scause; member
249 uint64_t scause; member
H A Dvmm_dev.h90 uint64_t scause; member
H A Dencoding.h1065 DECLARE_CSR(scause, CSR_SCAUSE)
/src/sys/riscv/riscv/ !
H A Dgenassym.c130 ASSYM(HYP_TRAP_SCAUSE, offsetof(struct hyptrap, scause));
H A Dexception.S112 csrr t0, scause
/src/usr.sbin/bhyve/riscv/ !
H A Dvmexit.c353 printf("unhandled exception: scause %#lx\n", vme->u.hyp.scause); in vmexit_hyp()
/src/lib/libvmmapi/ !
H A Dvmmapi.h172 int vm_inject_exception(struct vcpu *vcpu, uint64_t scause);
/src/contrib/llvm-project/llvm/lib/Target/RISCV/ !
H A DRISCVSystemOperands.td125 def : SysReg<"scause", 0x142>;