================
@@ -1095,6 +1095,16 @@ def FeatureStdExtSsccfg
def FeatureStdExtSsccptr
: RISCVExtension<1, 0, "Main memory supports page table reads">;
+def FeatureStdExtSspmp
+ : RISCVExtension<1, 0, "S-level Physical Memory Protection (SPMP)",
+ [FeatureStdExtSscsrind]>;
+def FeatureStdExtSspmpen
+ : RISCVExtension<1, 0, "Optimizing Context Switching of SPMP Entries",
[FeatureStdExtSspmp]>;
+
+def FeatureStdExtSmpmpdeleg
+ : RISCVExtension<1, 0, "Sharing Hardware Resources between PMP and SPMP",
+ [FeatureStdExtSmcsrind, FeatureStdExtSspmp]>;
----------------
ChunyuLiao wrote:
This part is not yet supported in the spec, and I don't know add Sm1p13.
`This extension is mandatory for implementations that support both Sspmp and
Sm1p13.`
Perhaps we need to support Sm1p13, like GCC's mpriv-spec?
https://github.com/llvm/llvm-project/pull/207696
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits