]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Rudimentary, kludgy, incomplete and probably just plain wrong support
authorJulian Seward <jseward@acm.org>
Tue, 7 Oct 2003 00:18:16 +0000 (00:18 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 7 Oct 2003 00:18:16 +0000 (00:18 +0000)
for vendor_id "CentaurHauls", which is the VIA string (reflecting its
design heritage).  Currently pretend to be something like a VIA Nehemiah.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1897

cachegrind/cg_main.c

index 9ad903753998843034064f3186d5e33a19381218..e18f93c130e5ef71653214ba624664cca9c6cc7b 100644 (file)
@@ -1353,6 +1353,19 @@ Int get_caches_from_CPUID(cache_t* I1c, cache_t* D1c, cache_t* L2c)
    } else if (0 == VG_(strcmp)(vendor_id, "AuthenticAMD")) {
       ret = AMD_cache_info(I1c, D1c, L2c);
 
+   } else if (0 == VG_(strcmp)(vendor_id, "CentaurHauls")) {
+      /* Total kludge.  Pretend to be a VIA Nehemiah. */
+      D1c->size      = 64;
+      D1c->assoc     = 16;
+      D1c->line_size = 16;
+      I1c->size      = 64;
+      I1c->assoc     = 4;
+      I1c->line_size = 16;
+      L2c->size      = 64;
+      L2c->assoc     = 16;
+      L2c->line_size = 16;
+      ret = 0;
+
    } else {
       VG_(message)(Vg_DebugMsg, "CPU vendor ID not recognised (%s)",
                    vendor_id);