|
From: <sv...@va...> - 2012-10-19 03:22:49
|
florian 2012-10-19 04:20:37 +0100 (Fri, 19 Oct 2012)
New Revision: 13058
Log:
Issue warning about missing L2 cache only if there are any
caches in the first place.
Modified files:
trunk/cachegrind/cg-arch.c
Modified: trunk/cachegrind/cg-arch.c (+1 -1)
===================================================================
--- trunk/cachegrind/cg-arch.c 2012-10-18 04:50:57 +01:00 (rev 13057)
+++ trunk/cachegrind/cg-arch.c 2012-10-19 04:20:37 +01:00 (rev 13058)
@@ -304,7 +304,7 @@
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");
}
|