aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorChristopher Celio <celio@eecs.berkeley.edu>2014-08-15 15:38:41 -0700
committerChristopher Celio <celio@eecs.berkeley.edu>2014-08-15 15:38:41 -0700
commit616cc32c30ac0684edfd50ed44fc78ed1bc20884 (patch)
tree3ad9cbea79da5a40a5a351e842e1e890a07ad298 /configure
parente2c0c3021ac2fa7cad5866e0f100c2dbf2372986 (diff)
downloadspike-616cc32c30ac0684edfd50ed44fc78ed1bc20884.zip
spike-616cc32c30ac0684edfd50ed44fc78ed1bc20884.tar.gz
spike-616cc32c30ac0684edfd50ed44fc78ed1bc20884.tar.bz2
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 15 insertions, 0 deletions
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
+