Commit | Line | Data |
---|---|---|
119da465 MF |
1 | dnl Note that this file is intended to be included at the m4 level and not |
2 | dnl the shell level, so use sinclude(...) to pull it in. | |
3 | ||
4 | # WHEN ADDING ENTRIES TO THIS MATRIX: | |
5 | ||
6 | # Make sure that the left side always has two dashes. Otherwise you | |
7 | # can get spurious matches. Even for unambiguous cases, do this as a | |
8 | # convention, else the table becomes a real mess to understand and | |
9 | # maintain. | |
10 | ||
11 | dnl glue to avoid code duplication at top level | |
12 | m4_ifndef([SIM_ARCH], [AC_DEFUN([SIM_ARCH],[sim_arch=$1])]) | |
13 | ||
119da465 MF |
14 | sim_igen=no |
15 | sim_arch= | |
16 | case "${target}" in | |
2e8cf49e NC |
17 | aarch64*-*-*) |
18 | SIM_ARCH(aarch64) | |
19 | ;; | |
4d393d60 | 20 | arm*-*-*) |
119da465 | 21 | SIM_ARCH(arm) |
119da465 MF |
22 | ;; |
23 | avr*-*-*) | |
24 | SIM_ARCH(avr) | |
25 | ;; | |
ef016f83 MF |
26 | bfin-*-*) |
27 | SIM_ARCH(bfin) | |
28 | ;; | |
119da465 MF |
29 | cr16*-*-*) |
30 | SIM_ARCH(cr16) | |
119da465 MF |
31 | ;; |
32 | cris-*-* | crisv32-*-*) | |
33 | SIM_ARCH(cris) | |
119da465 MF |
34 | ;; |
35 | d10v-*-*) | |
36 | SIM_ARCH(d10v) | |
37 | ;; | |
38 | frv-*-*) | |
39 | SIM_ARCH(frv) | |
119da465 MF |
40 | ;; |
41 | h8300*-*-*) | |
42 | SIM_ARCH(h8300) | |
119da465 MF |
43 | ;; |
44 | iq2000-*-*) | |
45 | SIM_ARCH(iq2000) | |
119da465 MF |
46 | ;; |
47 | lm32-*-*) | |
48 | SIM_ARCH(lm32) | |
119da465 MF |
49 | ;; |
50 | m32c-*-*) | |
51 | SIM_ARCH(m32c) | |
52 | ;; | |
53 | m32r-*-*) | |
54 | SIM_ARCH(m32r) | |
119da465 MF |
55 | ;; |
56 | m68hc11-*-*|m6811-*-*) | |
57 | SIM_ARCH(m68hc11) | |
119da465 MF |
58 | ;; |
59 | mcore-*-*) | |
60 | SIM_ARCH(mcore) | |
119da465 MF |
61 | ;; |
62 | microblaze-*-*) | |
63 | SIM_ARCH(microblaze) | |
119da465 MF |
64 | ;; |
65 | mips*-*-*) | |
66 | SIM_ARCH(mips) | |
119da465 MF |
67 | sim_igen=yes |
68 | ;; | |
69 | mn10300*-*-*) | |
70 | SIM_ARCH(mn10300) | |
71 | sim_igen=yes | |
72 | ;; | |
73 | moxie-*-*) | |
74 | SIM_ARCH(moxie) | |
119da465 | 75 | ;; |
3346cfda NC |
76 | msp430*-*-*) |
77 | SIM_ARCH(msp430) | |
78 | ;; | |
fa8b7c21 SH |
79 | or1k-*-* | or1knd-*-*) |
80 | SIM_ARCH(or1k) | |
81 | ;; | |
ddd44b70 DD |
82 | pru*-*-*) |
83 | SIM_ARCH(pru) | |
84 | ;; | |
87326c78 DD |
85 | rl78-*-*) |
86 | SIM_ARCH(rl78) | |
87 | ;; | |
119da465 MF |
88 | rx-*-*) |
89 | SIM_ARCH(rx) | |
90 | ;; | |
91 | sh64*-*-*) | |
92 | SIM_ARCH(sh64) | |
119da465 MF |
93 | ;; |
94 | sh*-*-*) | |
95 | SIM_ARCH(sh) | |
119da465 MF |
96 | ;; |
97 | sparc-*-rtems*|sparc-*-elf*) | |
98 | SIM_ARCH(erc32) | |
119da465 MF |
99 | ;; |
100 | powerpc*-*-*) | |
101 | SIM_ARCH(ppc) | |
102 | ;; | |
f46e4eb7 JB |
103 | ft32-*-*) |
104 | SIM_ARCH(ft32) | |
f46e4eb7 | 105 | ;; |
119da465 MF |
106 | v850*-*-*) |
107 | SIM_ARCH(v850) | |
108 | sim_igen=yes | |
119da465 | 109 | ;; |
119da465 MF |
110 | esac |
111 | AC_SUBST(sim_arch) |