|
From: <sv...@va...> - 2011-08-19 09:10:01
|
Author: tom
Date: 2011-08-19 10:05:13 +0100 (Fri, 19 Aug 2011)
New Revision: 11995
Log:
Make callgrind report the detected cache configuration as well.
Modified:
trunk/callgrind/sim.c
Modified: trunk/callgrind/sim.c
===================================================================
--- trunk/callgrind/sim.c 2011-08-19 09:01:22 UTC (rev 11994)
+++ trunk/callgrind/sim.c 2011-08-19 09:05:13 UTC (rev 11995)
@@ -1325,6 +1325,16 @@
// architecture).
VG_(configure_caches)( I1c, D1c, LLc, all_caches_clo_defined );
+ if (VG_(clo_verbosity) > 2) {
+ VG_(umsg)("Cache configuration detected:\n");
+ VG_(umsg)(" I1: %dB, %d-way, %dB lines\n",
+ I1c->size, I1c->assoc, I1c->line_size);
+ VG_(umsg)(" D1: %dB, %d-way, %dB lines\n",
+ D1c->size, D1c->assoc, D1c->line_size);
+ VG_(umsg)(" LL: %dB, %d-way, %dB lines\n",
+ LLc->size, LLc->assoc, LLc->line_size);
+ }
+
// Check the default/auto-detected values.
checkRes = check_cache(I1c); tl_assert(!checkRes);
checkRes = check_cache(D1c); tl_assert(!checkRes);
|