From 616cc32c30ac0684edfd50ed44fc78ed1bc20884 Mon Sep 17 00:00:00 2001 From: Christopher Celio Date: Fri, 15 Aug 2014 15:38:41 -0700 Subject: Added PC histogram option. - Spits out all PCs (on 4B granularity) executed with count. - Requires a compile time configuration option. - Also requires a run-time flag. --- configure | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 4a1bf3d..6eae9bf 100755 --- a/configure +++ b/configure @@ -650,6 +650,7 @@ with_fesvr enable_fpu enable_64bit enable_commitlog +enable_histogram ' ac_precious_vars='build_alias host_alias @@ -1286,6 +1287,7 @@ Optional Features: --disable-fpu Disable floating-point --disable-64bit Disable 64-bit mode --enable-commitlog Enable commit log generation + --enable-histogram Enable PC histogram generation Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -4216,6 +4218,19 @@ $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h 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 + -- cgit v1.1