-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[riscv] Init support for RISCV vector extension
- Loading branch information
Showing
93 changed files
with
4,072 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
##================================================================================================== | ||
## EVE - Expressive Vector Engine | ||
## Copyright : EVE Project Contributors | ||
## SPDX-License-Identifier: BSL-1.0 | ||
##================================================================================================== | ||
set(CMAKE_SYSTEM_NAME Generic) | ||
set(CMAKE_SYSTEM_PROCESSOR riscv64) | ||
|
||
set(CMAKE_C_COMPILER clang ) | ||
set(CMAKE_CXX_COMPILER clang++ ) | ||
|
||
|
||
if(NOT DEFINED ENV{RISCV_GCC}) | ||
message(FATAL_ERROR "expected to have RISCV_GCC in environment") | ||
endif() | ||
|
||
set(CMAKE_CXX_FLAGS "-O3 -march=rv64gcv -std=c++20 -mrvv-vector-bits=128 --sysroot=$ENV{RISCV_GCC}/sysroot --gcc-toolchain=$ENV{RISCV_GCC} --static --target=riscv64-unknown-linux-gnu ${EVE_OPTIONS}" ) | ||
|
||
set(CMAKE_CROSSCOMPILING_CMD ${PROJECT_SOURCE_DIR}/cmake/toolchain/run_rvv128.sh ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
##================================================================================================== | ||
## EVE - Expressive Vector Engine | ||
## Copyright : EVE Project Contributors | ||
## SPDX-License-Identifier: BSL-1.0 | ||
##================================================================================================== | ||
#!/bin/sh | ||
|
||
qemu-riscv64 --cpu rv64,v=true,vlen=128 $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.