Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLoadTags: Try accessing the first and last capability-size chunk
Check that we can access the first and last capability-size chunk. This also ensures that the bad access address is updated correctly in case any of these addresses are not accessible. In theory we should try to access the entire memory region (to match what sail does), but first and last will be equivalent for trapping/RVFI. Previously we were just checking the tag memory, which returns 0 for unmapped memory regions, but we should trap if these accesses are prevent e.g. by the PMP.
- Loading branch information