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

Add support for PMP emulation #21

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Add support for PMP emulation #21

merged 2 commits into from
Mar 5, 2024

Commits on Mar 5, 2024

  1. Add support for PMP virtualization

    This commit adds support for PMP virtualization. Note that the lock bit is not
    yet supported, thus PMPs are never enforced. The PMPs will need to be honoured
    when we will add support for running the OS.
    fesqvw authored and CharlyCst committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    e5f6b57 View commit details
    Browse the repository at this point in the history
  2. Add payload to test PMPs

    This commit adds a test payload to exercise PMP emulation. For now QEMU exposes
    only 16 PMPs, so Mirage can only expose 0 to the payload to stay spec-compliant
    while keeping a few PMPs to protect itself.
    The commit does include a test function for 16 exposed PMPs, we can enable it
    later once more PMPs become available.
    
    Co-authored-by: Abel Vexina Wilkinson <abel.vexinawilkinson@epfl.ch>
    CharlyCst and fesqvw committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    43c587c View commit details
    Browse the repository at this point in the history