This revision implements CSR mseccfg for RISCV according to the specification of version 0.9.4.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
1,120 ms | x64 debian > libomp.lock::omp_init_lock.c |
Event Timeline
Commit message is missing an m from mseccfg.
The name also concerns me, "security config" is extremely broad, so it's not clear it applies specifically to PMP things and it could get confused with other security-related extensions.
llvm/lib/Target/RISCV/RISCVSystemOperands.td | ||
---|---|---|
254 | The definitions here are grouped in the same way that they are in the privileged spec. Is the intent that these CSRs will be part of the same group as the existing PMP registers in the table in the CSR Listings section of the spec (table 2.5 in my build from earlier this year)? |
llvm/lib/Target/RISCV/RISCVSystemOperands.td | ||
---|---|---|
254 | I emailed Nick Kossifidis, here is the response:
|
Only minor comment is that if the CSR isn't in the mainline privileged specification, it would be worth adding a comment in RISCVSystemOperands.td explaining where it's defined.
The definitions here are grouped in the same way that they are in the privileged spec. Is the intent that these CSRs will be part of the same group as the existing PMP registers in the table in the CSR Listings section of the spec (table 2.5 in my build from earlier this year)?