Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | # ========== Copyright Header Begin ========================================== |
2 | # | |
3 | # OpenSPARC T2 Processor File: midasconfig.pl | |
4 | # Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
5 | # 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
6 | # | |
7 | # * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
8 | # | |
9 | # This program is free software; you can redistribute it and/or modify | |
10 | # it under the terms of the GNU General Public License as published by | |
11 | # the Free Software Foundation; version 2 of the License. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program; if not, write to the Free Software | |
20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 | # | |
22 | # For the avoidance of doubt, and except that if any non-GPL license | |
23 | # choice is available it will apply instead, Sun elects to use only | |
24 | # the General Public License version 2 (GPLv2) at this time for any | |
25 | # software where a choice of GPL license versions is made | |
26 | # available with the language indicating that GPLv2 or any later version | |
27 | # may be used, or where a choice of which version of the GPL is applied is | |
28 | # otherwise unspecified. | |
29 | # | |
30 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
31 | # CA 95054 USA or visit www.sun.com if you need additional information or | |
32 | # have any questions. | |
33 | # | |
34 | # ========== Copyright Header End ============================================ | |
35 | # -*- perl -*- | |
36 | ||
37 | our %PROJ_CONFIG = | |
38 | ( | |
39 | ||
40 | # NIAGARA-1 | |
41 | BW => | |
42 | { | |
43 | mmu_type => 'niagara', | |
44 | ttefmt => 'sun4v', | |
45 | tsbtagfmt => 'tagaccess', | |
46 | default_radix => 'decimal', | |
47 | ||
48 | # Number of assemblers to run in parallel | |
49 | build_threads => 3, | |
50 | # Erase build directory on success if this invocation created it | |
51 | cleanup => 1, | |
52 | # Erase build directory on success (if cleanup is set), even if | |
53 | # it wasn't created by this invocation | |
54 | force_cleanup => 0, | |
55 | # Build the diag, even if it looks like we have the same input and | |
56 | # same args as last time. | |
57 | force_build => 0, | |
58 | ||
59 | # If set, allow a TSB to have a collision (two addresses mapping | |
60 | # to same TSB pointer | |
61 | allow_tsb_conflicts => 0, | |
62 | # If set, don't cause fatal error if section is empty | |
63 | allow_empty_sections => 0, | |
64 | # If set, do not generate a fatal error if an illegal page size is | |
65 | # specified | |
66 | allow_illegal_page_sizes => 0, | |
67 | # If set (and allow_tsb_conflicts), allow the same tag to appear | |
68 | # twice in the same tsb. | |
69 | allow_duplicate_tags => 0, | |
70 | # Allows a TSB base to not be aligned with its size. Real | |
71 | # software will never do this, but who knows about diags | |
72 | allow_misaligned_tsb_base => 0, | |
73 | # If set, generate all TSBs that are defined, not just the ones | |
74 | # being used. | |
75 | gen_all_tsbs => 0, | |
76 | # If set to zero, do not compress any sections, regardless of the per- | |
77 | # section settings | |
78 | compress_image => 1, | |
79 | # Use backdoor environment mechanism to zero compressed sections | |
80 | env_zero => 1, | |
81 | # By default, result files in build directory are hard-linked to | |
82 | # destination directory. If this option is set, a copy is done | |
83 | # instead. | |
84 | copy_products => 0, | |
85 | # Use full paths for commands if set. Relative paths make output | |
86 | # more readable, though. | |
87 | full_paths => 0, | |
88 | ||
89 | ||
90 | # COMMAND OPTIONS. Note that if no path is given, it picks up tools | |
91 | # from the path. | |
92 | ||
93 | # Binary to use for goldfinger. | |
94 | goldfinger_cmd => 'goldfinger', | |
95 | # Minimum allowable version of goldfinger. | |
96 | goldfinger_version => '1.07', | |
97 | ||
98 | cat_cmd => 'gcat', | |
99 | diff_cmd => 'diff', | |
100 | pal_cmd => 'pal', | |
101 | cpp_cmd => 'bw_cpp', | |
102 | cpp_opt => ['-B -P'], | |
103 | ||
104 | m4_cmd => 'bw_m4', | |
105 | m4_opt => [], | |
106 | ||
107 | as_cmd => 'g_as', | |
108 | as_opt => ['-xarch=v9b'], | |
109 | ||
110 | ld_cmd => 'g_ld', | |
111 | ld_opt => ['-b elf64-sparc', '-no-warn-mismatch', | |
112 | '--no-check-sections'], | |
113 | ||
114 | gcc_cmd => 'gcc', | |
115 | gcc_opt => ['-m64', '-nostdinc', '-fno-common', '-fno-builtin'], | |
116 | ||
117 | perl_cmd => 'perl', | |
118 | ||
119 | # PATH OPTIONS | |
120 | ||
121 | cpp_includes => { | |
122 | # from diagroot | |
123 | diagroot => ['verif/diag/assembly/include'], | |
124 | # from directory where midas is run | |
125 | startdir => ['.'], | |
126 | # from build directory | |
127 | builddir => ['.'], | |
128 | # absolute paths | |
129 | abs => [], | |
130 | }, | |
131 | cpp_defines => [ 'GOLDFINGER=1' | |
132 | ], | |
133 | m4_includes => { | |
134 | diagroot => [], | |
135 | startdir => ['.'], | |
136 | builddir => ['.'], | |
137 | abs => [], | |
138 | }, | |
139 | ||
140 | ||
141 | link_paths => { | |
142 | diagroot => ['verif/diag'], | |
143 | startdir => ['.'], | |
144 | builddir => [], | |
145 | abs => [], | |
146 | }, | |
147 | ||
148 | csrc_includes => { | |
149 | diagroot => ['verif/diag/c'], | |
150 | startdir => ['.'], | |
151 | builddir => [], | |
152 | abs => [], | |
153 | }, | |
154 | ||
155 | c_includes => { | |
156 | diagroot => ['verif/diag/c/include'], | |
157 | startdir => ['.'], | |
158 | builddir => ['.'], | |
159 | abs => [], | |
160 | }, | |
161 | addphdr_ok => 0, | |
162 | ||
163 | }, | |
164 | ||
165 | # NIAGARA-2 | |
166 | OpenSparc_N2 => | |
167 | { | |
168 | mmu_type => 'niagara2', | |
169 | ttefmt => 'sun4v', | |
170 | tsbtagfmt => 'tagtarget', | |
171 | ||
172 | default_radix => 'decimal', | |
173 | ||
174 | # Number of assemblers to run in parallel | |
175 | build_threads => 3, | |
176 | # Erase build directory on success if this invocation created it | |
177 | cleanup => 1, | |
178 | # Erase build directory on success (if cleanup is set), even if | |
179 | # it wasn't created by this invocation | |
180 | force_cleanup => 0, | |
181 | # Build the diag, even if it looks like we have the same input and | |
182 | # same args as last time. | |
183 | force_build => 0, | |
184 | ||
185 | # If set, allow a TSB to have a collision (two addresses mapping | |
186 | # to same TSB pointer | |
187 | allow_tsb_conflicts => 0, | |
188 | # If set, don't cause fatal error if section is empty | |
189 | allow_empty_sections => 0, | |
190 | # If set, do not generate a fatal error if an illegal page size is | |
191 | # specified | |
192 | allow_illegal_page_sizes => 0, | |
193 | # If set (and allow_tsb_conflicts), allow the same tag to appear | |
194 | # twice in the same tsb. | |
195 | allow_duplicate_tags => 0, | |
196 | # Allows a TSB base to not be aligned with its size. Real | |
197 | # software will never do this, but who knows about diags | |
198 | allow_misaligned_tsb_base => 0, | |
199 | # If set, generate all TSBs that are defined, not just the ones | |
200 | # being used. | |
201 | gen_all_tsbs => 0, | |
202 | # If set to zero, do not compress any sections, regardless of the per- | |
203 | # section settings | |
204 | compress_image => 1, | |
205 | # Backdoor environment mechanism to zero compressed sections is | |
206 | # not available in N2 | |
207 | env_zero => 0, | |
208 | # By default, result files in build directory are hard-linked to | |
209 | # destination directory. If this option is set, a copy is done | |
210 | # instead. | |
211 | copy_products => 0, | |
212 | # Use full paths for commands if set. Relative paths make output | |
213 | # more readable, though. | |
214 | full_paths => 0, | |
215 | ||
216 | ||
217 | # COMMAND OPTIONS. Note that if no path is given, it picks up tools | |
218 | # from the path. | |
219 | ||
220 | # Binary to use for goldfinger. | |
221 | goldfinger_cmd => 'goldfinger', | |
222 | # Minimum allowable version of goldfinger. | |
223 | goldfinger_version => '1.07', | |
224 | ||
225 | cat_cmd => 'gcat', | |
226 | diff_cmd => 'diff', | |
227 | pal_cmd => 'pal', | |
228 | cpp_cmd => 'bw_cpp', | |
229 | cpp_opt => ['-B -P -traditional-cpp'], | |
230 | ||
231 | m4_cmd => 'bw_m4', | |
232 | m4_opt => [], | |
233 | ||
234 | as_cmd => 'g_as', | |
235 | as_opt => ['-xarch=v9b'], | |
236 | ||
237 | ld_cmd => 'g_ld', | |
238 | ld_opt => ['-b elf64-sparc', '-no-warn-mismatch', | |
239 | '--no-check-sections'], | |
240 | ||
241 | gcc_cmd => 'gcc', | |
242 | gcc_opt => ['-m64', '-nostdinc', '-fno-common', '-fno-builtin'], | |
243 | ||
244 | perl_cmd => 'perl', | |
245 | ||
246 | # PATH OPTIONS | |
247 | ||
248 | cpp_includes => { | |
249 | # from diagroot | |
250 | diagroot => ['verif/diag/assembly/include'], | |
251 | # from directory where midas is run | |
252 | startdir => ['.'], | |
253 | # from build directory | |
254 | builddir => ['.'], | |
255 | # absolute paths | |
256 | abs => [], | |
257 | }, | |
258 | cpp_defines => [ 'GOLDFINGER=1' | |
259 | ], | |
260 | m4_includes => { | |
261 | diagroot => [], | |
262 | startdir => ['.'], | |
263 | builddir => ['.'], | |
264 | abs => [], | |
265 | }, | |
266 | ||
267 | ||
268 | link_paths => { | |
269 | diagroot => ['verif/diag'], | |
270 | startdir => ['.'], | |
271 | builddir => [], | |
272 | abs => [], | |
273 | }, | |
274 | ||
275 | csrc_includes => { | |
276 | diagroot => ['verif/diag/c'], | |
277 | startdir => ['.'], | |
278 | builddir => [], | |
279 | abs => [], | |
280 | }, | |
281 | ||
282 | c_includes => { | |
283 | diagroot => ['verif/diag/c/include'], | |
284 | startdir => ['.'], | |
285 | builddir => ['.'], | |
286 | abs => [], | |
287 | }, | |
288 | ||
289 | addphdr_ok => 1, | |
290 | }, | |
291 | ||
292 | N2 => | |
293 | { | |
294 | mmu_type => 'niagara2', | |
295 | ttefmt => 'sun4v', | |
296 | tsbtagfmt => 'tagtarget', | |
297 | ||
298 | default_radix => 'decimal', | |
299 | ||
300 | # Number of assemblers to run in parallel | |
301 | build_threads => 3, | |
302 | # Erase build directory on success if this invocation created it | |
303 | cleanup => 1, | |
304 | # Erase build directory on success (if cleanup is set), even if | |
305 | # it wasn't created by this invocation | |
306 | force_cleanup => 0, | |
307 | # Build the diag, even if it looks like we have the same input and | |
308 | # same args as last time. | |
309 | force_build => 0, | |
310 | ||
311 | # If set, allow a TSB to have a collision (two addresses mapping | |
312 | # to same TSB pointer | |
313 | allow_tsb_conflicts => 0, | |
314 | # If set, don't cause fatal error if section is empty | |
315 | allow_empty_sections => 0, | |
316 | # If set, do not generate a fatal error if an illegal page size is | |
317 | # specified | |
318 | allow_illegal_page_sizes => 0, | |
319 | # If set (and allow_tsb_conflicts), allow the same tag to appear | |
320 | # twice in the same tsb. | |
321 | allow_duplicate_tags => 0, | |
322 | # Allows a TSB base to not be aligned with its size. Real | |
323 | # software will never do this, but who knows about diags | |
324 | allow_misaligned_tsb_base => 0, | |
325 | # If set, generate all TSBs that are defined, not just the ones | |
326 | # being used. | |
327 | gen_all_tsbs => 0, | |
328 | # If set to zero, do not compress any sections, regardless of the per- | |
329 | # section settings | |
330 | compress_image => 1, | |
331 | # Backdoor environment mechanism to zero compressed sections is | |
332 | # not available in N2 | |
333 | env_zero => 0, | |
334 | # By default, result files in build directory are hard-linked to | |
335 | # destination directory. If this option is set, a copy is done | |
336 | # instead. | |
337 | copy_products => 0, | |
338 | # Use full paths for commands if set. Relative paths make output | |
339 | # more readable, though. | |
340 | full_paths => 0, | |
341 | ||
342 | ||
343 | # COMMAND OPTIONS. Note that if no path is given, it picks up tools | |
344 | # from the path. | |
345 | ||
346 | # Binary to use for goldfinger. | |
347 | goldfinger_cmd => 'goldfinger', | |
348 | # Minimum allowable version of goldfinger. | |
349 | goldfinger_version => '1.07', | |
350 | ||
351 | cat_cmd => 'gcat', | |
352 | diff_cmd => 'diff', | |
353 | pal_cmd => 'pal', | |
354 | cpp_cmd => 'bw_cpp', | |
355 | cpp_opt => ['-B -P -traditional-cpp'], | |
356 | ||
357 | m4_cmd => 'bw_m4', | |
358 | m4_opt => [], | |
359 | ||
360 | as_cmd => 'g_as', | |
361 | as_opt => ['-xarch=v9b'], | |
362 | ||
363 | ld_cmd => 'g_ld', | |
364 | ld_opt => ['-b elf64-sparc', '-no-warn-mismatch', | |
365 | '--no-check-sections'], | |
366 | ||
367 | gcc_cmd => 'gcc', | |
368 | gcc_opt => ['-m64', '-nostdinc', '-fno-common', '-fno-builtin'], | |
369 | ||
370 | perl_cmd => 'perl', | |
371 | ||
372 | # PATH OPTIONS | |
373 | ||
374 | cpp_includes => { | |
375 | # from diagroot | |
376 | diagroot => ['verif/diag/assembly/include'], | |
377 | # from directory where midas is run | |
378 | startdir => ['.'], | |
379 | # from build directory | |
380 | builddir => ['.'], | |
381 | # absolute paths | |
382 | abs => [], | |
383 | }, | |
384 | cpp_defines => [ 'GOLDFINGER=1' | |
385 | ], | |
386 | m4_includes => { | |
387 | diagroot => [], | |
388 | startdir => ['.'], | |
389 | builddir => ['.'], | |
390 | abs => [], | |
391 | }, | |
392 | ||
393 | ||
394 | link_paths => { | |
395 | diagroot => ['verif/diag'], | |
396 | startdir => ['.'], | |
397 | builddir => [], | |
398 | abs => [], | |
399 | }, | |
400 | ||
401 | csrc_includes => { | |
402 | diagroot => ['verif/diag/c'], | |
403 | startdir => ['.'], | |
404 | builddir => [], | |
405 | abs => [], | |
406 | }, | |
407 | ||
408 | c_includes => { | |
409 | diagroot => ['verif/diag/c/include'], | |
410 | startdir => ['.'], | |
411 | builddir => ['.'], | |
412 | abs => [], | |
413 | }, | |
414 | ||
415 | addphdr_ok => 1, | |
416 | }, | |
417 | ||
418 | # NIAGARA-2plus | |
419 | NP => | |
420 | { | |
421 | mmu_type => 'niagara2', | |
422 | ttefmt => 'sun4v', | |
423 | tsbtagfmt => 'tagtarget', | |
424 | ||
425 | default_radix => 'decimal', | |
426 | ||
427 | # Number of assemblers to run in parallel | |
428 | build_threads => 3, | |
429 | # Erase build directory on success if this invocation created it | |
430 | cleanup => 1, | |
431 | # Erase build directory on success (if cleanup is set), even if | |
432 | # it wasn't created by this invocation | |
433 | force_cleanup => 0, | |
434 | # Build the diag, even if it looks like we have the same input and | |
435 | # same args as last time. | |
436 | force_build => 0, | |
437 | ||
438 | # If set, allow a TSB to have a collision (two addresses mapping | |
439 | # to same TSB pointer | |
440 | allow_tsb_conflicts => 0, | |
441 | # If set, don't cause fatal error if section is empty | |
442 | allow_empty_sections => 0, | |
443 | # If set, do not generate a fatal error if an illegal page size is | |
444 | # specified | |
445 | allow_illegal_page_sizes => 0, | |
446 | # If set (and allow_tsb_conflicts), allow the same tag to appear | |
447 | # twice in the same tsb. | |
448 | allow_duplicate_tags => 0, | |
449 | # Allows a TSB base to not be aligned with its size. Real | |
450 | # software will never do this, but who knows about diags | |
451 | allow_misaligned_tsb_base => 0, | |
452 | # If set, generate all TSBs that are defined, not just the ones | |
453 | # being used. | |
454 | gen_all_tsbs => 0, | |
455 | # If set to zero, do not compress any sections, regardless of the per- | |
456 | # section settings | |
457 | compress_image => 1, | |
458 | # Backdoor environment mechanism to zero compressed sections is | |
459 | # not available in NP | |
460 | env_zero => 0, | |
461 | # By default, result files in build directory are hard-linked to | |
462 | # destination directory. If this option is set, a copy is done | |
463 | # instead. | |
464 | copy_products => 0, | |
465 | # Use full paths for commands if set. Relative paths make output | |
466 | # more readable, though. | |
467 | full_paths => 0, | |
468 | ||
469 | ||
470 | # COMMAND OPTIONS. Note that if no path is given, it picks up tools | |
471 | # from the path. | |
472 | ||
473 | # Binary to use for goldfinger. | |
474 | goldfinger_cmd => 'goldfinger', | |
475 | # Minimum allowable version of goldfinger. | |
476 | goldfinger_version => '1.07', | |
477 | ||
478 | cat_cmd => 'gcat', | |
479 | diff_cmd => 'diff', | |
480 | pal_cmd => 'pal', | |
481 | cpp_cmd => 'bw_cpp', | |
482 | cpp_opt => ['-B -P -traditional-cpp'], | |
483 | ||
484 | m4_cmd => 'bw_m4', | |
485 | m4_opt => [], | |
486 | ||
487 | as_cmd => 'g_as', | |
488 | as_opt => ['-xarch=v9b'], | |
489 | ||
490 | ld_cmd => 'g_ld', | |
491 | ld_opt => ['-b elf64-sparc', '-no-warn-mismatch', | |
492 | '--no-check-sections'], | |
493 | ||
494 | gcc_cmd => 'gcc', | |
495 | gcc_opt => ['-m64', '-nostdinc', '-fno-common', '-fno-builtin'], | |
496 | ||
497 | perl_cmd => 'perl', | |
498 | ||
499 | # PATH OPTIONS | |
500 | ||
501 | cpp_includes => { | |
502 | # from diagroot | |
503 | diagroot => ['verif/diag/assembly/include'], | |
504 | # from directory where midas is run | |
505 | startdir => ['.'], | |
506 | # from build directory | |
507 | builddir => ['.'], | |
508 | # absolute paths | |
509 | abs => [], | |
510 | }, | |
511 | cpp_defines => [ 'GOLDFINGER=1' | |
512 | ], | |
513 | m4_includes => { | |
514 | diagroot => [], | |
515 | startdir => ['.'], | |
516 | builddir => ['.'], | |
517 | abs => [], | |
518 | }, | |
519 | ||
520 | ||
521 | link_paths => { | |
522 | diagroot => ['verif/diag'], | |
523 | startdir => ['.'], | |
524 | builddir => [], | |
525 | abs => [], | |
526 | }, | |
527 | ||
528 | csrc_includes => { | |
529 | diagroot => ['verif/diag/c'], | |
530 | startdir => ['.'], | |
531 | builddir => [], | |
532 | abs => [], | |
533 | }, | |
534 | ||
535 | c_includes => { | |
536 | diagroot => ['verif/diag/c/include'], | |
537 | startdir => ['.'], | |
538 | builddir => ['.'], | |
539 | abs => [], | |
540 | }, | |
541 | ||
542 | ||
543 | addphdr_ok => 1, | |
544 | }, | |
545 | ||
546 | # JUPITER, NIAGARA-2 Clone | |
547 | JUPITER => | |
548 | { | |
549 | mmu_type => 'niagara2', | |
550 | ttefmt => 'sun4v', | |
551 | tsbtagfmt => 'tagtarget', | |
552 | ||
553 | default_radix => 'decimal', | |
554 | ||
555 | # Number of assemblers to run in parallel | |
556 | build_threads => 3, | |
557 | # Erase build directory on success if this invocation created it | |
558 | cleanup => 1, | |
559 | # Erase build directory on success (if cleanup is set), even if | |
560 | # it wasn't created by this invocation | |
561 | force_cleanup => 0, | |
562 | # Build the diag, even if it looks like we have the same input and | |
563 | # same args as last time. | |
564 | force_build => 0, | |
565 | ||
566 | # If set, allow a TSB to have a collision (two addresses mapping | |
567 | # to same TSB pointer | |
568 | allow_tsb_conflicts => 0, | |
569 | # If set, don't cause fatal error if section is empty | |
570 | allow_empty_sections => 0, | |
571 | # If set, do not generate a fatal error if an illegal page size is | |
572 | # specified | |
573 | allow_illegal_page_sizes => 0, | |
574 | # If set (and allow_tsb_conflicts), allow the same tag to appear | |
575 | # twice in the same tsb. | |
576 | allow_duplicate_tags => 0, | |
577 | # Allows a TSB base to not be aligned with its size. Real | |
578 | # software will never do this, but who knows about diags | |
579 | allow_misaligned_tsb_base => 0, | |
580 | # If set, generate all TSBs that are defined, not just the ones | |
581 | # being used. | |
582 | gen_all_tsbs => 0, | |
583 | # If set to zero, do not compress any sections, regardless of the per- | |
584 | # section settings | |
585 | compress_image => 1, | |
586 | # Backdoor environment mechanism to zero compressed sections is | |
587 | # not available in N2 | |
588 | env_zero => 0, | |
589 | # By default, result files in build directory are hard-linked to | |
590 | # destination directory. If this option is set, a copy is done | |
591 | # instead. | |
592 | copy_products => 0, | |
593 | # Use full paths for commands if set. Relative paths make output | |
594 | # more readable, though. | |
595 | full_paths => 0, | |
596 | ||
597 | ||
598 | # COMMAND OPTIONS. Note that if no path is given, it picks up tools | |
599 | # from the path. | |
600 | ||
601 | # Binary to use for goldfinger. | |
602 | goldfinger_cmd => 'goldfinger', | |
603 | # Minimum allowable version of goldfinger. | |
604 | goldfinger_version => '1.07', | |
605 | ||
606 | cat_cmd => 'gcat', | |
607 | diff_cmd => 'diff', | |
608 | pal_cmd => 'pal', | |
609 | cpp_cmd => 'bw_cpp', | |
610 | cpp_opt => ['-B -P -traditional-cpp'], | |
611 | ||
612 | m4_cmd => 'bw_m4', | |
613 | m4_opt => [], | |
614 | ||
615 | as_cmd => 'g_as', | |
616 | as_opt => ['-xarch=v9b'], | |
617 | ||
618 | ld_cmd => 'g_ld', | |
619 | ld_opt => ['-b elf64-sparc', '-no-warn-mismatch', | |
620 | '--no-check-sections'], | |
621 | ||
622 | gcc_cmd => 'gcc', | |
623 | gcc_opt => ['-m64', '-nostdinc', '-fno-common', '-fno-builtin'], | |
624 | ||
625 | perl_cmd => 'perl', | |
626 | ||
627 | # PATH OPTIONS | |
628 | ||
629 | cpp_includes => { | |
630 | # from diagroot | |
631 | diagroot => ['verif/diag/assembly/include'], | |
632 | # from directory where midas is run | |
633 | startdir => ['.'], | |
634 | # from build directory | |
635 | builddir => ['.'], | |
636 | # absolute paths | |
637 | abs => [], | |
638 | }, | |
639 | cpp_defines => [ 'GOLDFINGER=1' | |
640 | ], | |
641 | m4_includes => { | |
642 | diagroot => [], | |
643 | startdir => ['.'], | |
644 | builddir => ['.'], | |
645 | abs => [], | |
646 | }, | |
647 | ||
648 | ||
649 | link_paths => { | |
650 | diagroot => ['verif/diag'], | |
651 | startdir => ['.'], | |
652 | builddir => [], | |
653 | abs => [], | |
654 | }, | |
655 | ||
656 | csrc_includes => { | |
657 | diagroot => ['verif/diag/c'], | |
658 | startdir => ['.'], | |
659 | builddir => [], | |
660 | abs => [], | |
661 | }, | |
662 | ||
663 | c_includes => { | |
664 | diagroot => ['verif/diag/c/include'], | |
665 | startdir => ['.'], | |
666 | builddir => ['.'], | |
667 | abs => [], | |
668 | }, | |
669 | ||
670 | ||
671 | addphdr_ok => 1, | |
672 | }, | |
673 | ||
674 | # KT | |
675 | KT => | |
676 | { | |
677 | mmu_type => 'niagara2', | |
678 | ttefmt => 'sun4v', | |
679 | tsbtagfmt => 'tagtarget', | |
680 | ||
681 | default_radix => 'decimal', | |
682 | ||
683 | # Number of assemblers to run in parallel | |
684 | build_threads => 3, | |
685 | # Erase build directory on success if this invocation created it | |
686 | cleanup => 1, | |
687 | # Erase build directory on success (if cleanup is set), even if | |
688 | # it wasn't created by this invocation | |
689 | force_cleanup => 0, | |
690 | # Build the diag, even if it looks like we have the same input and | |
691 | # same args as last time. | |
692 | force_build => 0, | |
693 | ||
694 | # If set, allow a TSB to have a collision (two addresses mapping | |
695 | # to same TSB pointer | |
696 | allow_tsb_conflicts => 0, | |
697 | # If set, don't cause fatal error if section is empty | |
698 | allow_empty_sections => 0, | |
699 | # If set, do not generate a fatal error if an illegal page size is | |
700 | # specified | |
701 | allow_illegal_page_sizes => 0, | |
702 | # If set (and allow_tsb_conflicts), allow the same tag to appear | |
703 | # twice in the same tsb. | |
704 | allow_duplicate_tags => 0, | |
705 | # Allows a TSB base to not be aligned with its size. Real | |
706 | # software will never do this, but who knows about diags | |
707 | allow_misaligned_tsb_base => 0, | |
708 | # If set, generate all TSBs that are defined, not just the ones | |
709 | # being used. | |
710 | gen_all_tsbs => 0, | |
711 | # If set to zero, do not compress any sections, regardless of the per- | |
712 | # section settings | |
713 | compress_image => 1, | |
714 | # Backdoor environment mechanism to zero compressed sections is | |
715 | # not available in N2 | |
716 | env_zero => 0, | |
717 | # By default, result files in build directory are hard-linked to | |
718 | # destination directory. If this option is set, a copy is done | |
719 | # instead. | |
720 | copy_products => 0, | |
721 | # Use full paths for commands if set. Relative paths make output | |
722 | # more readable, though. | |
723 | full_paths => 0, | |
724 | ||
725 | ||
726 | # COMMAND OPTIONS. Note that if no path is given, it picks up tools | |
727 | # from the path. | |
728 | ||
729 | # Binary to use for goldfinger. | |
730 | goldfinger_cmd => 'goldfinger', | |
731 | # Minimum allowable version of goldfinger. | |
732 | goldfinger_version => '1.07', | |
733 | ||
734 | cat_cmd => 'gcat', | |
735 | diff_cmd => 'diff', | |
736 | pal_cmd => 'pal', | |
737 | cpp_cmd => 'bw_cpp', | |
738 | cpp_opt => ['-B -P -traditional-cpp'], | |
739 | ||
740 | m4_cmd => 'bw_m4', | |
741 | m4_opt => [], | |
742 | ||
743 | as_cmd => 'g_as', | |
744 | as_opt => ['-xarch=v9b'], | |
745 | ||
746 | ld_cmd => 'g_ld', | |
747 | ld_opt => ['-b elf64-sparc', '-no-warn-mismatch', | |
748 | '--no-check-sections'], | |
749 | ||
750 | gcc_cmd => 'gcc', | |
751 | gcc_opt => ['-m64', '-nostdinc', '-fno-common', '-fno-builtin'], | |
752 | ||
753 | perl_cmd => 'perl', | |
754 | ||
755 | # PATH OPTIONS | |
756 | ||
757 | cpp_includes => { | |
758 | # from diagroot | |
759 | diagroot => ['verif/diag/assembly/include'], | |
760 | # from directory where midas is run | |
761 | startdir => ['.'], | |
762 | # from build directory | |
763 | builddir => ['.'], | |
764 | # absolute paths | |
765 | abs => [], | |
766 | }, | |
767 | cpp_defines => [ 'GOLDFINGER=1' | |
768 | ], | |
769 | m4_includes => { | |
770 | diagroot => [], | |
771 | startdir => ['.'], | |
772 | builddir => ['.'], | |
773 | abs => [], | |
774 | }, | |
775 | ||
776 | ||
777 | link_paths => { | |
778 | diagroot => ['verif/diag'], | |
779 | startdir => ['.'], | |
780 | builddir => [], | |
781 | abs => [], | |
782 | }, | |
783 | ||
784 | csrc_includes => { | |
785 | diagroot => ['verif/diag/c'], | |
786 | startdir => ['.'], | |
787 | builddir => [], | |
788 | abs => [], | |
789 | }, | |
790 | ||
791 | c_includes => { | |
792 | diagroot => ['verif/diag/c/include'], | |
793 | startdir => ['.'], | |
794 | builddir => ['.'], | |
795 | abs => [], | |
796 | }, | |
797 | ||
798 | addphdr_ok => 1, | |
799 | ||
800 | }, | |
801 | ||
802 | ); |