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:
Huang Qi 2022-02-28 14:58:59 +08:00 committed by Xiang Xiao
parent dcafd95971
commit d0356bb9ba
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}