Lines Matching refs:utrap
130 struct kvm_cpu_trap utrap = { 0 }; in truly_illegal_insn() local
133 utrap.sepc = vcpu->arch.guest_context.sepc; in truly_illegal_insn()
134 utrap.scause = EXC_INST_ILLEGAL; in truly_illegal_insn()
135 utrap.stval = insn; in truly_illegal_insn()
136 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in truly_illegal_insn()
159 struct kvm_cpu_trap utrap = { 0 }; in virtual_inst_fault() local
167 &utrap); in virtual_inst_fault()
168 if (utrap.scause) { in virtual_inst_fault()
169 utrap.sepc = ct->sepc; in virtual_inst_fault()
170 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in virtual_inst_fault()
192 struct kvm_cpu_trap utrap = { 0 }; in emulate_load() local
209 &utrap); in emulate_load()
210 if (utrap.scause) { in emulate_load()
212 utrap.sepc = ct->sepc; in emulate_load()
213 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in emulate_load()
305 struct kvm_cpu_trap utrap = { 0 }; in emulate_store() local
322 &utrap); in emulate_store()
323 if (utrap.scause) { in emulate_store()
325 utrap.sepc = ct->sepc; in emulate_store()
326 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in emulate_store()