Browse Source

Remove --enable-histogram option

It's now redundant.
pull/1191/head
Andrew Waterman 4 years ago
parent
commit
b5f68dc55c
  1. 3
      config.h.in
  2. 14
      configure
  3. 7
      riscv/processor.cc
  4. 5
      riscv/riscv.ac

3
config.h.in

@ -105,9 +105,6 @@
/* Enable support for running target in either endianness */
#undef RISCV_ENABLE_DUAL_ENDIAN
/* Enable PC histogram generation */
#undef RISCV_ENABLE_HISTOGRAM
/* Enable hardware support for misaligned loads and stores */
#undef RISCV_ENABLE_MISALIGNED

14
configure

@ -715,7 +715,6 @@ with_isa
with_priv
with_varch
with_target
enable_histogram
enable_dirty
enable_misaligned
enable_dual_endian
@ -1361,7 +1360,6 @@ Optional Features:
--enable-stow Enable stow-based install
--enable-optional-subprojects
Enable all optional subprojects
--enable-histogram Enable PC histogram generation
--enable-dirty Enable hardware management of PTE accessed and dirty
bits
--enable-misaligned Enable hardware support for misaligned loads and
@ -6051,18 +6049,6 @@ else
as_fn_error $? "libpthread is required" "$LINENO" 5
fi
# Check whether --enable-histogram was given.
if test "${enable_histogram+set}" = set; then :
enableval=$enable_histogram;
fi
if test "x$enable_histogram" = "xyes"; then :
$as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
fi
# Check whether --enable-dirty was given.
if test "${enable_dirty+set}" = set; then :

7
riscv/processor.cc

@ -519,13 +519,6 @@ void processor_t::set_debug(bool value)
void processor_t::set_histogram(bool value)
{
histogram_enabled = value;
#ifndef RISCV_ENABLE_HISTOGRAM
if (value) {
fprintf(stderr, "PC Histogram support has not been properly enabled;");
fprintf(stderr, " please re-build the riscv-isa-sim project using \"configure --enable-histogram\".\n");
abort();
}
#endif
}
void processor_t::enable_log_commits()

5
riscv/riscv.ac

@ -39,11 +39,6 @@ AC_SEARCH_LIBS([dlopen], [dl dld], [
AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR([libpthread is required])])
AC_ARG_ENABLE([histogram], AS_HELP_STRING([--enable-histogram], [Enable PC histogram generation]))
AS_IF([test "x$enable_histogram" = "xyes"], [
AC_DEFINE([RISCV_ENABLE_HISTOGRAM],,[Enable PC histogram generation])
])
AC_ARG_ENABLE([dirty], AS_HELP_STRING([--enable-dirty], [Enable hardware management of PTE accessed and dirty bits]))
AS_IF([test "x$enable_dirty" = "xyes"], [
AC_DEFINE([RISCV_ENABLE_DIRTY],,[Enable hardware management of PTE accessed and dirty bits])

Loading…
Cancel
Save