removed mstatus.sd and mstatus.fs bits

according to the revised specs. these mstatus bits are hardwired to zero / not used by the Zfinx extension
This commit is contained in:
stnolting 2021-09-11 07:30:25 +02:00
parent bd3acc4105
commit b28dbbd927
8 changed files with 11 additions and 37 deletions

View file

@ -148,11 +148,6 @@ int main() {
neorv32_uart_printf("Test cases per instruction: %u\n", (uint32_t)NUM_TEST_CASES);
neorv32_uart_printf("NOTE: The NEORV32 FPU does not support subnormal numbers yet. Subnormal numbers are flushed to zero.\n\n");
// enable FPU extension
uint32_t mstatus = neorv32_cpu_csr_read(CSR_MSTATUS);
mstatus |= 1 << CSR_MSTATUS_FS_L; // state = initial
neorv32_cpu_csr_write(CSR_MSTATUS, mstatus);
// clear exception status word
neorv32_cpu_csr_write(CSR_FFLAGS, 0); // real hardware
feclearexcept(FE_ALL_EXCEPT); // software runtime (GCC floating-point emulation)