aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDave.Wen <dave.wen@sifive.com>2019-04-30 19:20:16 -0700
committerDave.Wen <dave.wen@sifive.com>2019-04-30 19:20:16 -0700
commit99e1c9df7c6f7ab55c143593219ebb07698575b7 (patch)
tree13fdcf6fb433a62b5375246dbff142bf6eec4b78 /configure
parent2e64dcd3cd50f1ca803911638a5ce201c71e069a (diff)
downloadspike-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-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index fc8dc42..3dc340e 100755
--- a/configure
+++ b/configure
@@ -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.