diff options
author | Dave.Wen <dave.wen@sifive.com> | 2019-04-30 19:20:16 -0700 |
---|---|---|
committer | Dave.Wen <dave.wen@sifive.com> | 2019-04-30 19:20:16 -0700 |
commit | 99e1c9df7c6f7ab55c143593219ebb07698575b7 (patch) | |
tree | 13fdcf6fb433a62b5375246dbff142bf6eec4b78 /configure | |
parent | 2e64dcd3cd50f1ca803911638a5ce201c71e069a (diff) | |
download | spike-99e1c9df7c6f7ab55c143593219ebb07698575b7.zip spike-99e1c9df7c6f7ab55c143593219ebb07698575b7.tar.gz spike-99e1c9df7c6f7ab55c143593219ebb07698575b7.tar.bz2 |
rvv: configurable vector architecture during configuration and
execution time
configuration: --with-vector ${VARCH_STR}
execution: --varch ${VARCH_STR}
VARCH_STR representation: v${VLEN in bits}:e${ELEN in bits}:s${SLEN in bits}
e.g.: v128:e32:s128
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -702,6 +702,7 @@ enable_option_checking enable_stow enable_optional_subprojects with_isa +with_vector with_fesvr enable_commitlog enable_histogram @@ -1360,6 +1361,8 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-isa=RV64IMAFDC Sets the default RISC-V ISA + --with-vector=v128:e32:s128 + Sets the RISC-V Vector micro architecture --with-fesvr path to your fesvr installation if not in a standard location @@ -4463,6 +4466,25 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +# Check whether --with-vector was given. +if test "${with_vector+set}" = set; then : + withval=$with_vector; + if test "${withval}" = yes; then : +cat >>confdefs.h <<_ACEOF +#define DEFAULT_VARCH "v128:e32:s128" +_ACEOF + else +cat >>confdefs.h <<_ACEOF +#define DEFAULT_VARCH "$withval" +_ACEOF + fi +else + +cat >>confdefs.h <<_ACEOF +#define DEFAULT_VARCH "" +_ACEOF + +fi # Check whether --with-isa was given. |