aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-08-17 20:54:40 +0530
committerAnup Patel <anup@brainfault.org>2019-09-30 15:35:43 +0530
commit7d4420bd6929ef3f2c761c262dbc3f7f2ae150c2 (patch)
treedd82311f1464491c0a7f7df116961ca64aab5a33 /include
parenta14e7ee82c2723f18cf2d1c7f1a88d88766a6018 (diff)
downloadopensbi-7d4420bd6929ef3f2c761c262dbc3f7f2ae150c2.zip
opensbi-7d4420bd6929ef3f2c761c262dbc3f7f2ae150c2.tar.gz
opensbi-7d4420bd6929ef3f2c761c262dbc3f7f2ae150c2.tar.bz2
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 <anup.patel@wdc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/riscv_unpriv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/riscv_unpriv.h b/include/sbi/riscv_unpriv.h
index ebd0fe3..fce49bc 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