]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't bomb cachegrind at startup.
authorJulian Seward <jseward@acm.org>
Fri, 8 Jul 2005 09:45:43 +0000 (09:45 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 8 Jul 2005 09:45:43 +0000 (09:45 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4131

cachegrind/cg-ppc32.c

index 4f425073a61f73b5fee479806a4439f9cab2edc6..97d801d939818c861aa50c118c373aec99cca1be 100644 (file)
 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 ");
+   }
 }
 
 /*--------------------------------------------------------------------*/