From d4552238d536878e735a43ea24740d12df05e4b2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 19 Aug 2011 09:05:13 +0000 Subject: [PATCH] Make callgrind report the detected cache configuration as well. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11995 --- callgrind/sim.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/callgrind/sim.c b/callgrind/sim.c index 26f14bee89..49d719ef40 100644 --- a/callgrind/sim.c +++ b/callgrind/sim.c @@ -1325,6 +1325,16 @@ void configure_caches(cache_t* I1c, cache_t* D1c, cache_t* LLc) // 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); -- 2.47.2