@@ -182,7 +182,7 @@ impl SCB {
182182 5 => VectActive :: Exception ( Exception :: BusFault ) ,
183183 #[ cfg( not( armv6m) ) ]
184184 6 => VectActive :: Exception ( Exception :: UsageFault ) ,
185- #[ cfg( any( armv8m, target_arch = "x86_64" ) ) ]
185+ #[ cfg( any( armv8m, native ) ) ]
186186 7 => VectActive :: Exception ( Exception :: SecureFault ) ,
187187 11 => VectActive :: Exception ( Exception :: SVCall ) ,
188188 #[ cfg( not( armv6m) ) ]
@@ -218,7 +218,7 @@ pub enum Exception {
218218 UsageFault ,
219219
220220 /// Secure fault interrupt (only on ARMv8-M)
221- #[ cfg( any( armv8m, target_arch = "x86_64" ) ) ]
221+ #[ cfg( any( armv8m, native ) ) ]
222222 SecureFault ,
223223
224224 /// SV call interrupt
@@ -250,7 +250,7 @@ impl Exception {
250250 Exception :: BusFault => -11 ,
251251 #[ cfg( not( armv6m) ) ]
252252 Exception :: UsageFault => -10 ,
253- #[ cfg( any( armv8m, target_arch = "x86_64" ) ) ]
253+ #[ cfg( any( armv8m, native ) ) ]
254254 Exception :: SecureFault => -9 ,
255255 Exception :: SVCall => -5 ,
256256 #[ cfg( not( armv6m) ) ]
@@ -293,7 +293,7 @@ impl VectActive {
293293 5 => VectActive :: Exception ( Exception :: BusFault ) ,
294294 #[ cfg( not( armv6m) ) ]
295295 6 => VectActive :: Exception ( Exception :: UsageFault ) ,
296- #[ cfg( any( armv8m, target_arch = "x86_64" ) ) ]
296+ #[ cfg( any( armv8m, native ) ) ]
297297 7 => VectActive :: Exception ( Exception :: SecureFault ) ,
298298 11 => VectActive :: Exception ( Exception :: SVCall ) ,
299299 #[ cfg( not( armv6m) ) ]
@@ -934,7 +934,7 @@ pub enum SystemHandler {
934934 UsageFault = 6 ,
935935
936936 /// Secure fault interrupt (only on ARMv8-M)
937- #[ cfg( any( armv8m, target_arch = "x86_64" ) ) ]
937+ #[ cfg( any( armv8m, native ) ) ]
938938 SecureFault = 7 ,
939939
940940 /// SV call interrupt
0 commit comments