forked from Mirrors/opensbi
		
	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>
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user