diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-07-23 22:21:24 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:19 +0000 |
commit | 113f2b15c41a6b9656e55505ba4a47a05ab493ee (patch) | |
tree | 8eeb2178e02a00444c99e67dee0a0e122fbbf10f | |
parent | 05e57eac43e1a9699ad6142756e00c1bcb9fbb1e (diff) | |
download | gcc-113f2b15c41a6b9656e55505ba4a47a05ab493ee.zip gcc-113f2b15c41a6b9656e55505ba4a47a05ab493ee.tar.gz gcc-113f2b15c41a6b9656e55505ba4a47a05ab493ee.tar.bz2 |
Added Visium target hook (or at least provisional one)
-rw-r--r-- | gcc/config/visium/visium.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/config/visium/visium.h b/gcc/config/visium/visium.h index 5cb940f..3b36252 100644 --- a/gcc/config/visium/visium.h +++ b/gcc/config/visium/visium.h @@ -80,6 +80,30 @@ } \ while (0) +#define TARGET_RUST_CPU_INFO() \ + do { \ + rust_add_target_info("target_arch", "visium"); \ + /*TODO: figure out how to get info from debug, sim and enable-trampolines*/ \ + if (TARGET_FPU) \ + rust_add_target_info("target_feature", "hard-float"); \ + else \ + rust_add_target_info("target_feature", "soft-float"); \ + if (TARGET_MCM) \ + rust_add_target_info("target_feature", "mcm"); \ + else if (visium_cpu_and_features == PROCESSOR_GR5) \ + rust_add_target_info("target_feature", "gr5"); \ + else if (visium_cpu_and_features == PROCESSOR_GR6) \ + rust_add_target_info("target_feature", "gas"); \ + if (TARGET_SV_MODE) \ + rust_add_target_info("target_feature", "sv-mode"); \ + else \ + rust_add_target_info("target_feature", "user-mode"); \ + if (TARGET_BMI) \ + rust_add_target_info("target_feature", "bmi"); \ + if (TARGET_FPU_IEEE) \ + rust_add_target_info("target_feature", "fpu-ieee"); \ + } while (0) + /* Recast the cpu class to be the cpu attribute. Every file includes us, but not every file includes insn-attr.h. */ #define visium_cpu_attr ((enum attr_cpu) visium_cpu) |