aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-04-02 17:32:23 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-04-02 17:32:23 -0700
commit10ae74e48aee7403bc3cb2540d1a7ccb7c69a211 (patch)
tree0f055e3dcf026bffccad0964325574c69c6ab98d /configure
parent94c7f5adbeecf8b69ca848893032eb18f7e4bd76 (diff)
downloadspike-10ae74e48aee7403bc3cb2540d1a7ccb7c69a211.zip
spike-10ae74e48aee7403bc3cb2540d1a7ccb7c69a211.tar.gz
spike-10ae74e48aee7403bc3cb2540d1a7ccb7c69a211.tar.bz2
Allow configuration of default ISA with --with-isa
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index ca6fd5d..2c946e7 100755
--- a/configure
+++ b/configure
@@ -699,6 +699,7 @@ ac_user_opts='
enable_option_checking
enable_stow
enable_optional_subprojects
+with_isa
with_fesvr
enable_commitlog
enable_histogram
@@ -1339,6 +1340,7 @@ Optional Features:
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-fesvr path to your fesvr installation if not in a standard
location
@@ -4394,6 +4396,23 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+# Check whether --with-isa was given.
+if test "${with_isa+set}" = set; then :
+ withval=$with_isa;
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_ISA "$withval"
+_ACEOF
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_ISA "RV64IMAFDC"
+_ACEOF
+
+fi
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
$as_echo_n "checking for library containing dlopen... " >&6; }
if ${ac_cv_search_dlopen+:} false; then :