changeset 2358:82de9bd880e3

7028394: Newer AMD Processor Prefetch Defaults Summary: This new default has shown improvement across many workloads. Reviewed-by: kvn Contributed-by: tom.deneau@amd.com
author kvn
date Thu, 17 Mar 2011 12:08:01 -0700
parents 8033953d67ff
children d2134498fd3f
files src/cpu/x86/vm/vm_version_x86.cpp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/vm_version_x86.cpp	Fri Mar 11 22:34:57 2011 -0800
+++ b/src/cpu/x86/vm/vm_version_x86.cpp	Thu Mar 17 12:08:01 2011 -0700
@@ -436,6 +436,13 @@
         UseCountLeadingZerosInstruction = true;
       }
     }
+
+    // On family 21 processors default is no sw prefetch
+    if ( cpu_family() == 21 ) {
+      if (FLAG_IS_DEFAULT(AllocatePrefetchStyle)) {
+        AllocatePrefetchStyle = 0;
+      }
+    }
   }
 
   if( is_intel() ) { // Intel cpus specific settings