diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-07-08 09:45:43 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-07-08 09:45:43 +0000 |
commit | 97ad9ab1c041cd181f877fe8e0463bed6455e635 (patch) | |
tree | 779ec52bb0737757b6d58537effba0bcc997c600 /cachegrind | |
parent | 9828b349e92343c69a34036203c8cf47490b7e27 (diff) |
Don't bomb cachegrind at startup.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4131 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'cachegrind')
-rw-r--r-- | cachegrind/cg-ppc32.c | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/cachegrind/cg-ppc32.c b/cachegrind/cg-ppc32.c index 4f425073..97d801d9 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 "); + } } /*--------------------------------------------------------------------*/ |