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_common=yes |
15 | sim_igen=no | |
16 | sim_arch= | |
17 | case "${target}" in | |
2e8cf49e NC |
18 | aarch64*-*-*) |
19 | SIM_ARCH(aarch64) | |
20 | ;; | |
4d393d60 | 21 | arm*-*-*) |
119da465 | 22 | SIM_ARCH(arm) |
119da465 MF |
23 | ;; |
24 | avr*-*-*) | |
25 | SIM_ARCH(avr) | |
26 | ;; | |
ef016f83 MF |
27 | bfin-*-*) |
28 | SIM_ARCH(bfin) | |
29 | ;; | |
119da465 MF |
30 | cr16*-*-*) |
31 | SIM_ARCH(cr16) | |
119da465 MF |
32 | ;; |
33 | cris-*-* | crisv32-*-*) | |
34 | SIM_ARCH(cris) | |
119da465 MF |
35 | ;; |
36 | d10v-*-*) | |
37 | SIM_ARCH(d10v) | |
38 | ;; | |
39 | frv-*-*) | |
40 | SIM_ARCH(frv) | |
119da465 MF |
41 | ;; |
42 | h8300*-*-*) | |
43 | SIM_ARCH(h8300) | |
119da465 MF |
44 | ;; |
45 | iq2000-*-*) | |
46 | SIM_ARCH(iq2000) | |
119da465 MF |
47 | ;; |
48 | lm32-*-*) | |
49 | SIM_ARCH(lm32) | |
119da465 MF |
50 | ;; |
51 | m32c-*-*) | |
52 | SIM_ARCH(m32c) | |
53 | ;; | |
54 | m32r-*-*) | |
55 | SIM_ARCH(m32r) | |
119da465 MF |
56 | ;; |
57 | m68hc11-*-*|m6811-*-*) | |
58 | SIM_ARCH(m68hc11) | |
119da465 MF |
59 | ;; |
60 | mcore-*-*) | |
61 | SIM_ARCH(mcore) | |
119da465 MF |
62 | ;; |
63 | microblaze-*-*) | |
64 | SIM_ARCH(microblaze) | |
119da465 MF |
65 | ;; |
66 | mips*-*-*) | |
67 | SIM_ARCH(mips) | |
119da465 MF |
68 | sim_igen=yes |
69 | ;; | |
70 | mn10300*-*-*) | |
71 | SIM_ARCH(mn10300) | |
72 | sim_igen=yes | |
73 | ;; | |
74 | moxie-*-*) | |
75 | SIM_ARCH(moxie) | |
119da465 | 76 | ;; |
3346cfda NC |
77 | msp430*-*-*) |
78 | SIM_ARCH(msp430) | |
79 | ;; | |
87326c78 DD |
80 | rl78-*-*) |
81 | SIM_ARCH(rl78) | |
82 | ;; | |
119da465 MF |
83 | rx-*-*) |
84 | SIM_ARCH(rx) | |
85 | ;; | |
86 | sh64*-*-*) | |
87 | SIM_ARCH(sh64) | |
119da465 MF |
88 | ;; |
89 | sh*-*-*) | |
90 | SIM_ARCH(sh) | |
119da465 MF |
91 | ;; |
92 | sparc-*-rtems*|sparc-*-elf*) | |
93 | SIM_ARCH(erc32) | |
119da465 MF |
94 | ;; |
95 | powerpc*-*-*) | |
96 | SIM_ARCH(ppc) | |
97 | ;; | |
f46e4eb7 JB |
98 | ft32-*-*) |
99 | SIM_ARCH(ft32) | |
f46e4eb7 | 100 | ;; |
119da465 MF |
101 | v850*-*-*) |
102 | SIM_ARCH(v850) | |
103 | sim_igen=yes | |
119da465 MF |
104 | ;; |
105 | *) | |
106 | # No simulator subdir, so the subdir "common" isn't needed. | |
107 | sim_common=no | |
108 | ;; | |
109 | esac | |
110 | AC_SUBST(sim_arch) |