Replies: 1 comment
-
I haven't looked into your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently added sv48 support under gem5's riscv. I saw the Virtual Address Translation Process on page 62 of the 《riscv-privileged-v1.10.pdf》 manual as follows:
In step 8, if i > 0, then:
But the implementation in the doTranslate function in src/arch/riscv/tlb.cc of gem5 is like this:
PageShift is a constant 12. e->logBytes and e->paddr are from
Obtained by the stepWalk function in the file src/arch/riscv/pagetable_walker.cc:
Is there something wrong with this implementation? Is the correct implementation supposed to be like this?
The translateWithTLB function should also be modified to:
Beta Was this translation helpful? Give feedback.
All reactions