diff options
author | Andrew Waterman <andrew@sifive.com> | 2018-04-24 14:01:16 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2018-04-24 14:01:49 -0700 |
commit | f2aaee46b9c4ff7573bab35351cbaab6178b6395 (patch) | |
tree | 25ab0f43aff8d88c13669630dab039c359f72cb5 /pk | |
parent | fd2ddce557a9085ccdba1a455eded4808e7466c6 (diff) | |
download | riscv-pk-f2aaee46b9c4ff7573bab35351cbaab6178b6395.zip riscv-pk-f2aaee46b9c4ff7573bab35351cbaab6178b6395.tar.gz riscv-pk-f2aaee46b9c4ff7573bab35351cbaab6178b6395.tar.bz2 |
Enable FPU in PK, regardless of FPU presence
Otherwise, the emulation code will refuse to emulate FP instructions.
Diffstat (limited to 'pk')
-rw-r--r-- | pk/pk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -161,7 +161,7 @@ void boot_loader(uintptr_t dtb) write_csr(stvec, &trap_entry); write_csr(sscratch, 0); write_csr(sie, 0); - set_csr(sstatus, SSTATUS_SUM); + set_csr(sstatus, SSTATUS_SUM | SSTATUS_FS); file_init(); enter_supervisor_mode(rest_of_boot_loader, pk_vm_init(), 0); |