From 4f17848ad89423829d3063c980689daecff18b09 Mon Sep 17 00:00:00 2001 From: xoviat <49173759+xoviat@users.noreply.github.com> Date: Wed, 12 Aug 2026 18:47:31 -0500 Subject: [PATCH] inline(never) methods that contain asm. --- cortex-m/src/peripheral/scb.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cortex-m/src/peripheral/scb.rs b/cortex-m/src/peripheral/scb.rs index 278638b3..cb3044f2 100644 --- a/cortex-m/src/peripheral/scb.rs +++ b/cortex-m/src/peripheral/scb.rs @@ -349,7 +349,7 @@ impl SCB { /// Enables I-cache if currently disabled. /// /// This operation first invalidates the entire I-cache. - #[inline] + #[inline(never)] #[asm_cfg(cortex_m)] pub fn enable_icache(&mut self) { // Don't do anything if I-cache is already enabled @@ -437,7 +437,7 @@ impl SCB { /// /// This operation first invalidates the entire D-cache, ensuring it does /// not contain stale values before being enabled. - #[inline] + #[inline(never)] #[asm_cfg(cortex_m)] pub fn enable_dcache(&mut self, cpuid: &mut CPUID) { // Don't do anything if D-cache is already enabled