Skip to content

Commit 7269972

Browse files
committed
Add trustzone and virtualization target features for aarch32.
These are LLVM target features which allow the `smc` and `hvc` instructions respectively to be used in inline assembly.
1 parent 8ebf042 commit 7269972

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const ARM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
4444
// #[target_feature].
4545
("thumb-mode", Some(sym::arm_target_feature)),
4646
("thumb2", Some(sym::arm_target_feature)),
47+
("trustzone", Some(sym::arm_target_feature)),
4748
("v5te", Some(sym::arm_target_feature)),
4849
("v6", Some(sym::arm_target_feature)),
4950
("v6k", Some(sym::arm_target_feature)),
@@ -53,6 +54,7 @@ const ARM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
5354
("vfp2", Some(sym::arm_target_feature)),
5455
("vfp3", Some(sym::arm_target_feature)),
5556
("vfp4", Some(sym::arm_target_feature)),
57+
("virtualization", Some(sym::arm_target_feature)),
5658
// tidy-alphabetical-end
5759
];
5860

0 commit comments

Comments
 (0)