@@ -308,7 +308,7 @@ impl SCB {
308308 ///
309309 /// This operation first invalidates the entire I-cache.
310310 #[ inline]
311- #[ cortex_m_macros:: asm_cfg( any ( armv7m , armv7em , armv8m ) ) ]
311+ #[ cortex_m_macros:: asm_cfg( 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_cfg( 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_cfg( any ( armv6m , armv7m , armv7em , armv8m ) ) ]
399+ #[ cortex_m_macros:: asm_cfg( 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 ( ) {
0 commit comments