Issue warning about missing L2 cache only if there are any
authorflorian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Fri, 19 Oct 2012 03:20:37 +0000 (03:20 +0000)
committerflorian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Fri, 19 Oct 2012 03:20:37 +0000 (03:20 +0000)
caches in the first place.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13058 a5019735-40e9-0310-863c-91ae7b9d1cf9

cachegrind/cg-arch.c

index be442d0b4fecde1a036a24c3212b5fb3fc1b081a..b59908a7fcef741ff39137297ed36f80e43530db 100644 (file)
@@ -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");
    }