rsd-devel / rsd

RSD: RISC-V Out-of-Order Superscalar Processor
Apache License 2.0
934 stars 95 forks source link

Does RSD support Supervisor mode or User mode? #47

Closed Hsiang0816 closed 2 years ago

Hsiang0816 commented 2 years ago

Hi!

After I read the documents and source codes of RSD, it seems that RSD can only support Machine mode.

Is it possible to support Supervisor mode or User mode? Or does RSD have technology like PMP etc...?

Thanks!

shioyadan commented 2 years ago

Hi,

We would like to implement memory protection in the future. However, the current version of RSD supports only machine mode and does not support PMP.

RSD has its own simple static address translation mechanism. However, it is statically configured at synthesis time and may not be what you expect. https://github.com/rsd-devel/rsd/blob/master/Processor/Src/Memory/MemoryMapTypes.sv

Hsiang0816 commented 2 years ago

Thank you for solving my doubts!