()
| 168 | assert_eq!( |
| 169 | csrs.read(addr::FCSR).expect("CSR access should succeed"), |
| 170 | fcsr_val |
| 171 | ); |
| 172 | } |
| 173 | |
| 174 | #[test] |
| 175 | fn csr_accumulate_fflags() { |
| 176 | let mut csrs = CsrFile::new(); |
| 177 | |
| 178 | csrs.accumulate_fflags(0x01); // NX |
| 179 | assert_eq!(csrs.fflags, 0x01); |
| 180 | |
| 181 | csrs.accumulate_fflags(0x10); // NV |
| 182 | assert_eq!(csrs.fflags, 0x11); |
nothing calls this directly
no test coverage detected