main.rs: enable floating point
authorKit Rhett Aultman <kit@kitaultman.com>
Mon, 2 Sep 2024 17:44:02 +0000 (13:44 -0400)
committerKit Rhett Aultman <kit@kitaultman.com>
Mon, 2 Sep 2024 17:44:02 +0000 (13:44 -0400)
commit934a8b734c89102ad02c39811aad55d22c66cc9e
tree21e152e0593e1b0a30e31ba11db56b221c43bf19
parent6c1ec60d62a8bf46c7435ee03b602d92789fd6cd
main.rs: enable floating point

The trap frame already handles the floating point registers, but
floating point support was not enabled via the mstatus register.  This
didn't cause an issue on the Ubuntu 22.04 standard version of qemu, but
one built from nightly source will issue an illegal instruction
exception if floating point registers are accessed without the support
being enabled.

This commit fixes the issue by enabling floating point support from
early initialization.
src/main.rs