mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
cleanup some more cache_flush refs
This commit is contained in:
parent
653010b09a
commit
ca105f4be8
2 changed files with 0 additions and 38 deletions
|
|
@ -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",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue