Skip to content

Commit

Permalink
SoC: Add zicsr extension when compiled with nuclei_llvm in npk.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Oct 15, 2024
1 parent bfd8e28 commit 79ac682
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SoC/evalsoc/Common/npk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ buildconfig:
common_flags: # flags need to be combined together across all packages
# Enable experimental extensions for clang
- flags: -menable-experimental-extensions
# Add zicsr extension for clang
- flags: -Xclang -target-feature -Xclang +zicsr
- flags: -isystem =/include/libncrt
condition: $( startswith(${stdclib}, "libncrt") )
ldflags:
Expand Down
2 changes: 2 additions & 0 deletions SoC/gd32vf103/Common/npk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ buildconfig:
toolchain_name: RISC-V Clang/Newlib
cross_prefix: riscv64-unknown-elf- # optional
common_flags: # flags need to be combined together across all packages
# Add zicsr extension for clang
- flags: -Xclang -target-feature -Xclang +zicsr
- flags: -isystem =/include/libncrt
condition: $( startswith(${stdclib}, "libncrt") )
ldflags:
Expand Down
2 changes: 2 additions & 0 deletions SoC/gd32vw55x/Common/npk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ buildconfig:
toolchain_name: RISC-V Clang/Newlib
cross_prefix: riscv64-unknown-elf- # optional
common_flags: # flags need to be combined together across all packages
# Add zicsr extension for clang
- flags: -Xclang -target-feature -Xclang +zicsr
- flags: -isystem =/include/libncrt
condition: $( startswith(${stdclib}, "libncrt") )
ldflags:
Expand Down

0 comments on commit 79ac682

Please sign in to comment.