Skip to content

Commit 3c61a0f

Browse files
authored
Merge pull request #1937 from ved-rivos/0317
Shadow stack inst should cause samo access fault
2 parents 947b394 + f440af1 commit 3c61a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/mmu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ reg_t mmu_t::translate(mem_access_info_t access_info, reg_t len)
6565

6666
reg_t paddr = walk(access_info) | (addr & (PGSIZE-1));
6767
if (!pmp_ok(paddr, len, access_info.flags.ss_access ? STORE : type, mode, access_info.flags.hlvx))
68-
throw_access_exception(virt, addr, type);
68+
throw_access_exception(virt, addr, access_info.flags.ss_access ? STORE : type);
6969
return paddr;
7070
}
7171

0 commit comments

Comments
 (0)