Right now, we have a global writable_misa config option that makes the entire misa CSR read-only or read-write. Implementations can make each individual extension bit read-only or read-write, so we need additional granularity here. For example, Spike makes the U and S bits read-only but the rest of the extension bits read-write.
UDB uses MUTABLE_MISA_A, MUTABLE_MISA_B, etc. as the parameters that control this. We probably need to do something similar.
Right now, we have a global
writable_misaconfig option that makes the entiremisaCSR read-only or read-write. Implementations can make each individual extension bit read-only or read-write, so we need additional granularity here. For example, Spike makes the U and S bits read-only but the rest of the extension bits read-write.UDB uses
MUTABLE_MISA_A,MUTABLE_MISA_B, etc. as the parameters that control this. We probably need to do something similar.