From 7d4420bd6929ef3f2c761c262dbc3f7f2ae150c2 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Sat, 17 Aug 2019 20:54:40 +0530 Subject: include: Extend get_insn() to read instruction from VS/VU mode Current implementation of get_insn() is not suitable for reading instruction from VS/VU mode because we have to set SSTATUS_MXR bit in VSSTATUS CSR for reading instruction from VS/VU mode. This patch extends get_insn() to read instruction from VS/VU mode. Signed-off-by: Anup Patel Signed-off-by: Alistair Francis --- include/sbi/riscv_unpriv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/sbi/riscv_unpriv.h b/include/sbi/riscv_unpriv.h index ebd0fe37..fce49bcb 100644 --- a/include/sbi/riscv_unpriv.h +++ b/include/sbi/riscv_unpriv.h @@ -43,7 +43,7 @@ DECLARE_UNPRIVILEGED_LOAD_FUNCTION(u64) DECLARE_UNPRIVILEGED_STORE_FUNCTION(u64) DECLARE_UNPRIVILEGED_LOAD_FUNCTION(ulong) -ulong get_insn(ulong mepc, struct sbi_scratch *scratch, +ulong get_insn(ulong mepc, bool virt, struct sbi_scratch *scratch, struct unpriv_trap *trap); #endif -- cgit v1.3.1