riscv / riscv-test-env

https://jira.riscv.org/browse/RVG-141
Other
42 stars 107 forks source link

env: trap and page fault filter mechanism #40

Closed deepak0414 closed 1 year ago

deepak0414 commented 1 year ago

Certain tests (particularly negative) may require a fault to occur.

However in order to pass the tests, page fault and traps must return back to the tests. This patch add support for page fault and trap filtering in env.

Signed-off-by: Deepak Gupta debug@rivosinc.com

aswaterman commented 1 year ago

LGTM.

aswaterman commented 1 year ago

Once tests that use this API are contributed, we might review how well the API works out in practice. Seems OK, though.