mirror of
https://github.com/apache/nuttx.git
synced 2026-03-24 15:45:48 +08:00
arch/risc-v/qemu-rv: Set FS bits in mstatus
FPU test may fail without correct FS bits. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
@@ -225,7 +225,8 @@ uint32_t riscv_get_newintctx(void)
|
||||
{
|
||||
/* Set machine previous privilege mode to machine mode.
|
||||
* Also set machine previous interrupt enable
|
||||
* Note: In qemu, FPU is always exist even if don't use F|D ISA extension
|
||||
*/
|
||||
|
||||
return (MSTATUS_MPPM | MSTATUS_MPIE);
|
||||
return (MSTATUS_MPPM | MSTATUS_MPIE | MSTATUS_FS_INIT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user