cleanup some more cache_flush refs

This commit is contained in:
bunnie 2025-08-05 23:02:54 +08:00
parent 653010b09a
commit ca105f4be8
2 changed files with 0 additions and 38 deletions

View file

@ -526,20 +526,3 @@ pub fn lfsr_next_u32(state: u32) -> u32 {
(state << 1) + bit
}
#[inline(always)]
#[allow(dead_code)]
fn cache_flush() {
unsafe {
#[rustfmt::skip]
core::arch::asm!(
"fence.i",
".word 0x500F",
"nop",
"nop",
"nop",
"nop",
"nop",
);
}
}

View file

@ -1353,24 +1353,3 @@ impl Spim {
true
}
}
// Stub retained because it is helpful for debugging some bus contention issues.
#[allow(dead_code)]
fn cache_flush() {
unsafe {
// let the write go through before continuing
#[rustfmt::skip]
core::arch::asm!(
".word 0x500F",
"nop",
"nop",
"nop",
"nop",
"fence",
"nop",
"nop",
"nop",
"nop",
);
}
}