Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv-dv mmu tests not fully valid #9

Open
bieganski opened this issue Feb 26, 2022 · 0 comments
Open

riscv-dv mmu tests not fully valid #9

bieganski opened this issue Feb 26, 2022 · 0 comments

Comments

@bieganski
Copy link
Owner

bieganski commented Feb 26, 2022

What happens?

For non-leaf PTE (page table entries) Risc-V spec says that neither A, D or U bits can be set. Page-fault exception should be thrown when found such non-leaf page during page-walk.

However, riscv-dv generates non-leaf pages with those bits set, expecting hardware to proceed without error. Spike simulator however traps (described in the issue below).
To obtain Spike simulation log without traps, I commented out corresponging lines inside riscv-isa-sim code (descrobed in the issue below).

Once MMU traps are supported in mtkCPU (#8), Spike's behavior should be reproduced.

related issue in riscv-dv repository: chipsalliance/riscv-dv#846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant