Searched refs:scause (Results 1 – 14 of 14) sorted by relevance
/freebsd/sys/riscv/vmm/ |
H A D | vmm_riscv.c | 306 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 D | riscv.h | 119 uint64_t scause; member 139 DEFINE_VMMOPS_IFUNC(int, exception, (void *vcpui, uint64_t scause))
|
H A D | vmm_dev_machdep.c | 95 error = vm_inject_exception(vcpu, vmexc->scause); in vmmdev_machdep_ioctl()
|
H A D | vmm.c | 1001 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 D | vmm_switch.S | 211 csrr a1, scause
|
/freebsd/lib/libvmmapi/riscv/ |
H A D | vmmapi_machdep.c | 110 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 D | vmm.h | 153 int vm_inject_exception(struct vcpu *vcpu, uint64_t scause); 265 uint64_t scause; member 293 uint64_t scause; member
|
H A D | vmm_dev.h | 83 uint64_t scause; member
|
H A D | encoding.h | 1065 DECLARE_CSR(scause, CSR_SCAUSE)
|
/freebsd/sys/riscv/riscv/ |
H A D | genassym.c | 130 ASSYM(HYP_TRAP_SCAUSE, offsetof(struct hyptrap, scause));
|
H A D | exception.S | 112 csrr t0, scause
|
/freebsd/usr.sbin/bhyve/riscv/ |
H A D | vmexit.c | 351 printf("unhandled exception: scause %#lx\n", vme->u.hyp.scause); in vmexit_hyp()
|
/freebsd/lib/libvmmapi/ |
H A D | vmmapi.h | 173 int vm_inject_exception(struct vcpu *vcpu, uint64_t scause);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVSystemOperands.td | 125 def : SysReg<"scause", 0x142>;
|