Searched refs:scause (Results 1 – 14 of 14) sorted by relevance
| /src/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 | vmm.c | 502 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 D | riscv.h | 119 uint64_t scause; member
|
| H A D | vmm_dev_machdep.c | 92 error = vm_inject_exception(vcpu, vmexc->scause); in vmmdev_machdep_ioctl()
|
| H A D | vmm_switch.S | 211 csrr a1, scause
|
| /src/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()
|
| /src/sys/riscv/include/ ! |
| H A D | vmm.h | 149 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 D | vmm_dev.h | 90 uint64_t scause; member
|
| H A D | encoding.h | 1065 DECLARE_CSR(scause, CSR_SCAUSE)
|
| /src/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
|
| /src/usr.sbin/bhyve/riscv/ ! |
| H A D | vmexit.c | 353 printf("unhandled exception: scause %#lx\n", vme->u.hyp.scause); in vmexit_hyp()
|
| /src/lib/libvmmapi/ ! |
| H A D | vmmapi.h | 172 int vm_inject_exception(struct vcpu *vcpu, uint64_t scause);
|
| /src/contrib/llvm-project/llvm/lib/Target/RISCV/ ! |
| H A D | RISCVSystemOperands.td | 125 def : SysReg<"scause", 0x142>;
|