Skip to content

Commit

Permalink
Disable prefetching on ARM target
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearth committed Oct 31, 2024
1 parent c8c9806 commit ac85824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl TTable {
#[cfg(target_arch = "x86_64")]
std::arch::x86_64::_mm_prefetch::<{ std::arch::x86_64::_MM_HINT_T0 }>(addr);

#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
#[cfg(target_arch = "aarch64")]
std::arch::asm!("prfm PSTL1KEEP, [{}]", in(reg) addr);
}
}
Expand Down

0 comments on commit ac85824

Please sign in to comment.