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