diff options
Diffstat (limited to 'machine/minit.c')
-rw-r--r-- | machine/minit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/machine/minit.c b/machine/minit.c index 3623f38..456de60 100644 --- a/machine/minit.c +++ b/machine/minit.c @@ -20,7 +20,9 @@ static void mstatus_init() { // Enable FPU if (supports_extension('D') || supports_extension('F')) - write_csr(mstatus, MSTATUS_FS); + write_csr(mstatus, MSTATUS_FS | MSTATUS_XS); + else + write_csr(mstatus, MSTATUS_XS); // Enable user/supervisor use of perf counters if (supports_extension('S')) |