Skip to content

Commit

Permalink
SoC: Fix startup code for flen handling
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <578567190@qq.com>
  • Loading branch information
fanghuaqi committed Jul 12, 2021
1 parent 07c510d commit 7eb7bfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SoC/demosoc/Common/Source/GCC/startup_demosoc.S
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ _start:

/* ===== Startup Stage 2 ===== */

#ifdef __riscv_flen
#if defined(__riscv_flen) && __riscv_flen > 0
/* Enable FPU */
li t0, MSTATUS_FS
csrs mstatus, t0
Expand Down
2 changes: 1 addition & 1 deletion SoC/gd32vf103/Common/Source/GCC/startup_gd32vf103.S
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ _start0800:

/* ===== Startup Stage 2 ===== */

#ifdef __riscv_flen
#if defined(__riscv_flen) && __riscv_flen > 0
/* Enable FPU */
li t0, MSTATUS_FS
csrs mstatus, t0
Expand Down

0 comments on commit 7eb7bfa

Please sign in to comment.