include: Extend get_insn() to read instruction from VS/VU mode
authorAnup Patel <anup.patel@wdc.com>
Sat, 17 Aug 2019 15:24:40 +0000 (20:54 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 30 Sep 2019 10:05:43 +0000 (15:35 +0530)
commit7d4420bd6929ef3f2c761c262dbc3f7f2ae150c2
treedd82311f1464491c0a7f7df116961ca64aab5a33
parenta14e7ee82c2723f18cf2d1c7f1a88d88766a6018
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>
include/sbi/riscv_unpriv.h
lib/sbi/riscv_unpriv.c
lib/sbi/sbi_illegal_insn.c
lib/sbi/sbi_misaligned_ldst.c