sifive/freedom-e-sdk

example-pmp application doesn't work on qemu w/ FreedomStudio

pcotret opened this issue · 1 comments

  • Create a project in Freedom Studio
  • Target : qemu-sifive-u54
  • Select example program: example-pmp

This program is a demonstration of the Physical Memory Protection unit available in RISC-V

  1. Write to an unprotected address
  2. Configure the PMP for read-only
  3. Re-write to the same address
    => No error...
    Don't know if the QEMU given by SiFive really support the PMP

Issue isn't related to the code but more about the maturity of PMP support in QEMU https://baylibre.com/risc-v-pmp-and-zephyr-rtos-a-new-userspace-has-entered/