From: Florian Krohm Date: Fri, 19 Oct 2012 03:20:37 +0000 (+0000) Subject: Issue warning about missing L2 cache only if there are any X-Git-Tag: svn/VALGRIND_3_9_0~610 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a6563f8267be79dfb14aed01f92f7a26696832b;p=thirdparty%2Fvalgrind.git Issue warning about missing L2 cache only if there are any caches in the first place. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13058 --- diff --git a/cachegrind/cg-arch.c b/cachegrind/cg-arch.c index be442d0b4f..b59908a7fc 100644 --- a/cachegrind/cg-arch.c +++ b/cachegrind/cg-arch.c @@ -304,7 +304,7 @@ configure_caches(cache_t *I1c, cache_t *D1c, cache_t *LLc, d1 = locate_cache(ci, DATA_CACHE, 1); ll = locate_cache(ci, UNIFIED_CACHE, ci->num_levels); - if (ll == NULL) { + if (ci->num_caches > 0 && ll == NULL) { VG_(dmsg)("warning: L2 cache not installed, ignore LL results.\n"); }