< prev index next >

src/cpu/aarch64/vm/vm_version_aarch64.cpp

Print this page

        

*** 135,153 **** --- 135,161 ---- FLAG_SET_DEFAULT(AllocatePrefetchStepSize, dcache_line); if (FLAG_IS_DEFAULT(PrefetchScanIntervalInBytes)) FLAG_SET_DEFAULT(PrefetchScanIntervalInBytes, 3*dcache_line); if (FLAG_IS_DEFAULT(PrefetchCopyIntervalInBytes)) FLAG_SET_DEFAULT(PrefetchCopyIntervalInBytes, 3*dcache_line); + if (FLAG_IS_DEFAULT(SoftwarePrefetchHintDistance)) + FLAG_SET_DEFAULT(SoftwarePrefetchHintDistance, 3*dcache_line); if (PrefetchCopyIntervalInBytes != -1 && ((PrefetchCopyIntervalInBytes & 7) || (PrefetchCopyIntervalInBytes >= 32768))) { warning("PrefetchCopyIntervalInBytes must be -1, or a multiple of 8 and < 32768"); PrefetchCopyIntervalInBytes &= ~7; if (PrefetchCopyIntervalInBytes >= 32768) PrefetchCopyIntervalInBytes = 32760; } + if (SoftwarePrefetchHintDistance != -1 && + (SoftwarePrefetchHintDistance & 7)) { + warning("SoftwarePrefetchHintDistance must be -1, or a multiple of 8"); + SoftwarePrefetchHintDistance &= ~7; + } + unsigned long auxv = getauxval(AT_HWCAP); char buf[512]; _features = auxv;
< prev index next >