Lines Matching refs:utrap
154 struct kvm_cpu_trap utrap = { 0 }; in truly_illegal_insn() local
157 utrap.sepc = vcpu->arch.guest_context.sepc; in truly_illegal_insn()
158 utrap.scause = EXC_INST_ILLEGAL; in truly_illegal_insn()
159 utrap.stval = insn; in truly_illegal_insn()
160 utrap.htval = 0; in truly_illegal_insn()
161 utrap.htinst = 0; in truly_illegal_insn()
162 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in truly_illegal_insn()
170 struct kvm_cpu_trap utrap = { 0 }; in truly_virtual_insn() local
173 utrap.sepc = vcpu->arch.guest_context.sepc; in truly_virtual_insn()
174 utrap.scause = EXC_VIRTUAL_INST_FAULT; in truly_virtual_insn()
175 utrap.stval = insn; in truly_virtual_insn()
176 utrap.htval = 0; in truly_virtual_insn()
177 utrap.htinst = 0; in truly_virtual_insn()
178 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in truly_virtual_insn()
414 struct kvm_cpu_trap utrap = { 0 }; in kvm_riscv_vcpu_virtual_insn() local
422 &utrap); in kvm_riscv_vcpu_virtual_insn()
423 if (utrap.scause) { in kvm_riscv_vcpu_virtual_insn()
424 utrap.sepc = ct->sepc; in kvm_riscv_vcpu_virtual_insn()
425 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in kvm_riscv_vcpu_virtual_insn()
460 struct kvm_cpu_trap utrap = { 0 }; in kvm_riscv_vcpu_mmio_load() local
477 &utrap); in kvm_riscv_vcpu_mmio_load()
478 if (utrap.scause) { in kvm_riscv_vcpu_mmio_load()
480 utrap.sepc = ct->sepc; in kvm_riscv_vcpu_mmio_load()
481 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in kvm_riscv_vcpu_mmio_load()
586 struct kvm_cpu_trap utrap = { 0 }; in kvm_riscv_vcpu_mmio_store() local
603 &utrap); in kvm_riscv_vcpu_mmio_store()
604 if (utrap.scause) { in kvm_riscv_vcpu_mmio_store()
606 utrap.sepc = ct->sepc; in kvm_riscv_vcpu_mmio_store()
607 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in kvm_riscv_vcpu_mmio_store()