# HG changeset patch # User kvn # Date 1300388881 25200 # Node ID 82de9bd880e3d53bc2d2576d105a7c11e5d14627 # Parent 8033953d67ff28e869f2888075ca2680356724cf 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 diff -r 8033953d67ff -r 82de9bd880e3 src/cpu/x86/vm/vm_version_x86.cpp --- 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