File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
19
19
- New ` riscv::register::xip::clear_pending ` atomic function for ` mip ` and ` sip ` registers.
20
20
This function is marked as ` unsafe ` , as its availability depends both on the target chip
21
21
and the target interrupt source.
22
+ - Add ` mseccfg ` CSR
23
+ - Add ` mseccfgh ` CSR
22
24
23
25
### Changed
24
26
Original file line number Diff line number Diff line change @@ -18,3 +18,17 @@ read_write_csr_field! {
18
18
pmm,
19
19
PMM : [ 0 : 1 ] ,
20
20
}
21
+
22
+ #[ cfg( test) ]
23
+ mod tests {
24
+ use super :: * ;
25
+
26
+ #[ test]
27
+ fn test_mseccfgh ( ) {
28
+ let mut mseccfgh = Mseccfgh :: from_bits ( 0 ) ;
29
+
30
+ test_csr_field ! ( mseccfgh, pmm: PMM :: Disabled ) ;
31
+ test_csr_field ! ( mseccfgh, pmm: PMM :: EnabledXlen57 ) ;
32
+ test_csr_field ! ( mseccfgh, pmm: PMM :: EnabledXlen48 ) ;
33
+ }
34
+ }
You can’t perform that action at this time.
0 commit comments