@@ -308,7 +308,7 @@ impl SCB {
308308 ///
309309 /// This operation first invalidates the entire I-cache.
310310 #[ inline]
311- #[ cortex_m_macros:: asm_wrapper( any ( armv7m , armv7em , armv8m ) ) ]
311+ #[ cortex_m_macros:: asm_wrapper( cortex_m ) ]
312312 pub fn enable_icache ( & mut self ) {
313313 // Don't do anything if I-cache is already enabled
314314 if Self :: icache_enabled ( ) {
@@ -380,7 +380,6 @@ impl SCB {
380380
381381 /// Invalidates the entire I-cache.
382382 #[ inline]
383- #[ cortex_m_macros:: asm_wrapper( any( armv6m, armv7m, armv7em, armv8m) ) ]
384383 pub fn invalidate_icache ( & mut self ) {
385384 // NOTE(unsafe): No races as all CBP registers are write-only and stateless
386385 let mut cbp = unsafe { CBP :: new ( ) } ;
@@ -397,7 +396,7 @@ impl SCB {
397396 /// This operation first invalidates the entire D-cache, ensuring it does
398397 /// not contain stale values before being enabled.
399398 #[ inline]
400- #[ cortex_m_macros:: asm_wrapper( any ( armv6m , armv7m , armv7em , armv8m ) ) ]
399+ #[ cortex_m_macros:: asm_wrapper( cortex_m ) ]
401400 pub fn enable_dcache ( & mut self , cpuid : & mut CPUID ) {
402401 // Don't do anything if D-cache is already enabled
403402 if Self :: dcache_enabled ( ) {
@@ -467,7 +466,7 @@ impl SCB {
467466 ///
468467 /// It's used immediately before enabling the dcache, but not exported publicly.
469468 #[ inline]
470- #[ cortex_m_macros :: asm_wrapper ( any ( armv6m , armv7m , armv7em , armv8m ) ) ]
469+ #[ cfg ( cortex_m ) ]
471470 unsafe fn invalidate_dcache ( & mut self , cpuid : & mut CPUID ) {
472471 unsafe {
473472 // NOTE(unsafe): No races as all CBP registers are write-only and stateless
0 commit comments