Open deepak0414 opened 1 year ago
I would like to wait to merge this PR until the CFI extension is closer to being frozen. It seems likely to change in the interim.
Also, please remove all of the debugging code that was added.
@aswaterman would you be open to adding trap filtering and page fault filtering. I can make a PR just for that.
That change is anyways seems like can be used by tests for other arch extensions.
Seems reasonable; send me a new PR and let’s talk about it there.
This PR adds following
FILTER_TRAP
macro and allow certain traps to go back to test cases.FILTER_PAGE_FAULT
macro and allow certain page faults to go back to test cases.[1] - https://github.com/riscv/riscv-cfi