# Identity of this package.
PACKAGE_NAME='RISC-V ISA Simulator'
-PACKAGE_TARNAME='riscv-isa-run'
+PACKAGE_TARNAME='spike'
PACKAGE_VERSION='?'
PACKAGE_STRING='RISC-V ISA Simulator ?'
PACKAGE_BUGREPORT='Andrew Waterman'
with_fesvr
enable_fpu
enable_64bit
-enable_rvc
-enable_vec
+enable_commitlog
+enable_histogram
'
ac_precious_vars='build_alias
host_alias
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/riscv-isa-run]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
Enable all optional subprojects
--disable-fpu Disable floating-point
--disable-64bit Disable 64-bit mode
- --enable-rvc Enable instruction compression
- --disable-vec Disable vector processor
+ --enable-commitlog Enable commit log generation
+ --enable-histogram Enable PC histogram generation
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
# Default compiler flags
#-------------------------------------------------------------------------
-CFLAGS="-Wall -O2 -Wno-unused"
+CFLAGS="-Wall -Wno-unused -O2"
-CXXFLAGS="-Wall -O2 -Wno-pmf-conversions"
+CXXFLAGS="-Wall -Wno-unused -O2 -std=c++11"
#-------------------------------------------------------------------------
if test "${with_fesvr+set}" = set; then :
withval=$with_fesvr;
LDFLAGS="-L$withval/lib $LDFLAGS"
- CFLAGS="-I$withval/include $CFLAGS"
+ CPPFLAGS="-I$withval/include $CPPFLAGS"
fi
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lfesvr $LIBS"
+LIBS="-lfesvr -pthread $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
fi
-# Check whether --enable-rvc was given.
-if test "${enable_rvc+set}" = set; then :
- enableval=$enable_rvc;
+# Check whether --enable-commitlog was given.
+if test "${enable_commitlog+set}" = set; then :
+ enableval=$enable_commitlog;
fi
-if test "x$enable_rvc" = "xyes"; then :
+if test "x$enable_commitlog" = "xyes"; then :
-$as_echo "#define RISCV_ENABLE_RVC /**/" >>confdefs.h
+$as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
fi
-# Check whether --enable-vec was given.
-if test "${enable_vec+set}" = set; then :
- enableval=$enable_vec;
+# Check whether --enable-histogram was given.
+if test "${enable_histogram+set}" = set; then :
+ enableval=$enable_histogram;
fi
-if test "x$enable_vec" != "xno"; then :
+if test "x$enable_histogram" = "xyes"; then :
-$as_echo "#define RISCV_ENABLE_VEC /**/" >>confdefs.h
+$as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
fi
+ # Add subproject to our running list
+
+ subprojects="$subprojects hwacha"
+
+ # Process the subproject appropriately. If enabled add it to the
+ # $enabled_subprojects running shell variable, set a
+ # SUBPROJECT_ENABLED C define, and include the appropriate
+ # 'subproject.ac'.
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : hwacha" >&5
+$as_echo "$as_me: configuring default subproject : hwacha" >&6;}
+ ac_config_files="$ac_config_files hwacha.mk:hwacha/hwacha.mk.in"
+
+ enable_hwacha_sproj="yes"
+ subprojects_enabled="$subprojects_enabled hwacha"
+
+$as_echo "#define HWACHA_ENABLED /**/" >>confdefs.h
+
+
+
+
+
+
+ # Determine if this is a required or an optional subproject
+
+
+
+ # Determine if there is a group with the same name
+
+
+
+ # Create variations of the subproject name suitable for use as a CPP
+ # enabled define, a shell enabled variable, and a shell function
+
+
+
+
+
+
+
+
+
+
+
+ # Add subproject to our running list
+
+ subprojects="$subprojects dummy_rocc"
+
+ # Process the subproject appropriately. If enabled add it to the
+ # $enabled_subprojects running shell variable, set a
+ # SUBPROJECT_ENABLED C define, and include the appropriate
+ # 'subproject.ac'.
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
+$as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
+ ac_config_files="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
+
+ enable_dummy_rocc_sproj="yes"
+ subprojects_enabled="$subprojects_enabled dummy_rocc"
+
+$as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
+
+
+
+
+
+
+ # Determine if this is a required or an optional subproject
+
+
+
+ # Determine if there is a group with the same name
+
+
+
+ # Create variations of the subproject name suitable for use as a CPP
+ # enabled define, a shell enabled variable, and a shell function
+
+
+
+
+
+
+
+
+
+
+
# Add subproject to our running list
subprojects="$subprojects softfloat"
# Add subproject to our running list
- subprojects="$subprojects softfloat_riscv"
+ subprojects="$subprojects spike_main"
# Process the subproject appropriately. If enabled add it to the
# $enabled_subprojects running shell variable, set a
# 'subproject.ac'.
- { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat_riscv" >&5
-$as_echo "$as_me: configuring default subproject : softfloat_riscv" >&6;}
- ac_config_files="$ac_config_files softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike_main" >&5
+$as_echo "$as_me: configuring default subproject : spike_main" >&6;}
+ ac_config_files="$ac_config_files spike_main.mk:spike_main/spike_main.mk.in"
+
+ enable_spike_main_sproj="yes"
+ subprojects_enabled="$subprojects_enabled spike_main"
+
+$as_echo "#define SPIKE_MAIN_ENABLED /**/" >>confdefs.h
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if ${ac_cv_lib_dl_dlopen+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dl_dlopen=yes
+else
+ ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
- enable_softfloat_riscv_sproj="yes"
- subprojects_enabled="$subprojects_enabled softfloat_riscv"
+ LIBS="-ldl $LIBS"
-$as_echo "#define SOFTFLOAT_RISCV_ENABLED /**/" >>confdefs.h
+else
+ as_fn_error $? "libdl is required" "$LINENO" 5
+fi
do
case $ac_config_target in
"riscv.mk") CONFIG_FILES="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
+ "hwacha.mk") CONFIG_FILES="$CONFIG_FILES hwacha.mk:hwacha/hwacha.mk.in" ;;
+ "dummy_rocc.mk") CONFIG_FILES="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
"softfloat.mk") CONFIG_FILES="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
- "softfloat_riscv.mk") CONFIG_FILES="$CONFIG_FILES softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in" ;;
+ "spike_main.mk") CONFIG_FILES="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;