Skip to content

Page table fault when accessing virtual address xxx. #262

Closed Answered by powerjg
zhaorui233 asked this question in Q&A
Discussion options

You must be logged in to vote

To follow up, in SE mode, you can use Process.map to insert virt->phys mappings into the emulated page table. See https://github.com/gem5/gem5/blob/stable/src/sim/Process.py#L39

You can also use mmap in SE mode to get the specific virtual address that you used in the map function described above.

Finally, you may also be interested in the EmulatedDriver class found here: https://github.com/gem5/gem5/blob/stable/src/sim/Process.py#L75

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@powerjg
Comment options

Answer selected by zhaorui233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants