From: Julian Seward Date: Fri, 8 Jul 2005 09:45:43 +0000 (+0000) Subject: Don't bomb cachegrind at startup. X-Git-Tag: svn/VALGRIND_3_0_0~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf83f130247e699198bb153d9e7d8d603a823e0;p=thirdparty%2Fvalgrind.git Don't bomb cachegrind at startup. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4131 --- diff --git a/cachegrind/cg-ppc32.c b/cachegrind/cg-ppc32.c index 4f425073a6..97d801d939 100644 --- a/cachegrind/cg-ppc32.c +++ b/cachegrind/cg-ppc32.c @@ -307,24 +307,22 @@ void VG_(configure_caches)(cache_t* I1c, cache_t* D1c, cache_t* L2c, Bool all_caches_clo_defined) { - tl_assert(0); + Int res; + + // Set caches to default. + *I1c = (cache_t) { 65536, 2, 64 }; + *D1c = (cache_t) { 65536, 2, 64 }; + *L2c = (cache_t) { 262144, 8, 64 }; -//.. Int res; -//.. -//.. // Set caches to default. -//.. *I1c = (cache_t) { 65536, 2, 64 }; -//.. *D1c = (cache_t) { 65536, 2, 64 }; -//.. *L2c = (cache_t) { 262144, 8, 64 }; -//.. -//.. // Then replace with any info we can get from CPUID. -//.. res = get_caches_from_CPUID(I1c, D1c, L2c); -//.. -//.. // Warn if CPUID failed and config not completely specified from cmd line. -//.. if (res != 0 && !all_caches_clo_defined) { -//.. VG_(message)(Vg_DebugMsg, -//.. "Warning: Couldn't auto-detect cache config, using one " -//.. "or more defaults "); -//.. } + // Then replace with any info we can get from CPUID. + res = 1; /*get_caches_from_CPUID(I1c, D1c, L2c);*/ + + // Warn if CPUID failed and config not completely specified from cmd line. + if (res != 0 && !all_caches_clo_defined) { + VG_(message)(Vg_DebugMsg, + "Warning: Couldn't auto-detect cache config, using one " + "or more defaults "); + } } /*--------------------------------------------------------------------*/