[llvm] [RISCV] Add srmcfg CSR from Ssqosid extension. (PR #79914)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 11:24:12 PST 2024


================
@@ -132,6 +132,11 @@ def : SysReg<"sip", 0x144>;
 let DeprecatedName = "sptbr" in
 def : SysReg<"satp", 0x180>;
 
+//===----------------------------------------------------------------------===//
+// Quality-of-Service(QoS) Identifiers (Ssqosid)
+//===----------------------------------------------------------------------===//
+def : SysReg<"srmcfg", 0x181>;
----------------
preames wrote:

Two questions.

1) Where in the specification is the register number mentioned?  I didn't find it with some quick searching.

2) Do we need to do anything special to worry about sysregs of different sizes?  This one is SXLEN-bit for instance, and I don't see that obviously being reflected here.

https://github.com/llvm/llvm-project/pull/79914


More information about the llvm-commits mailing list