diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-27 22:10:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-27 22:10:12 +0200 |
| commit | 1880e83ae365cc7558445a3e50424bb7eb936897 (patch) | |
| tree | 6d0ae42f43f0fad29c8a3f2da31bc96272e0d9e6 /compiler/rustc_codegen_ssa/src | |
| parent | 3c554f5cb4965a08f2a2b45ab4bba321a5f249fa (diff) | |
| parent | 7269972f7336a27980ea19353a29bad0d2a1faa9 (diff) | |
| download | rust-1880e83ae365cc7558445a3e50424bb7eb936897.tar.gz rust-1880e83ae365cc7558445a3e50424bb7eb936897.zip | |
Rollup merge of #112207 - qwandor:virt_feature, r=davidtwco
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.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/target_features.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs index c5976a65411..6a3a31a0d60 100644 --- a/compiler/rustc_codegen_ssa/src/target_features.rs +++ b/compiler/rustc_codegen_ssa/src/target_features.rs @@ -44,6 +44,7 @@ const ARM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[ // #[target_feature]. ("thumb-mode", Some(sym::arm_target_feature)), ("thumb2", Some(sym::arm_target_feature)), + ("trustzone", Some(sym::arm_target_feature)), ("v5te", Some(sym::arm_target_feature)), ("v6", Some(sym::arm_target_feature)), ("v6k", Some(sym::arm_target_feature)), @@ -53,6 +54,7 @@ const ARM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[ ("vfp2", Some(sym::arm_target_feature)), ("vfp3", Some(sym::arm_target_feature)), ("vfp4", Some(sym::arm_target_feature)), + ("virtualization", Some(sym::arm_target_feature)), // tidy-alphabetical-end ]; |
