Browse Source
To reduce repetition in code.
This has one functional effect that I can see: before this change, on
a config that supports floating point but not S-mode or Vector,
writing misa.F=0 would freeze the FS bits in mstatus. I assume this
was an accident and never the intended behavior, though I can't find
anything in the privileged spec about this.
Now the FS bits will always be writable regardless of misa.F, if the
bits exist at all. (Because we now call extension_enabled('F') only
once, at reset, instead of every mstatus write.)
pull/796/head
committed by
Andrew Waterman
2 changed files with 5 additions and 11 deletions
Loading…
Reference in new issue