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
This commit is contained in:
Florian Krohm 2012-10-19 03:20:37 +00:00
parent d735bc96be
commit 8a6563f826

View 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");
}