Move unit test summary counters into global struct in dejagnu.h
[dejagnu.git] / baseboards / mmixware-sim.exp
blobf501b5b0d26c985a47819205d411afc2da89fb18
1 # Copyright (C) 1997-2019, 2020 Free Software Foundation, Inc.
3 # This file is part of DejaGnu.
5 # DejaGnu is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # DejaGnu is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with DejaGnu; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19 # This is a list of toolchains that are supported on this board.
20 set_board_info target_install {mmix-knuth-mmixware}
22 # Load the generic configuration for this board. This will define any
23 # routines needed to communicate with the board.
24 load_generic_config "sim"
26 # Unset the slow_simulator flag; this simulator isn't slow. (I haven't
27 # found documentation as to what constitutes a "slow" simulator and
28 # there's no reference to that variable in the GCC test-suite, but all
29 # tests I've found work.)
30 unset_board_info slow_simulator
32 # We don't use basic-sim.exp and setup_sim because the simulator, called
33 # "mmix", is external to the build tree. If nobody set the simulator
34 # name, we set it to "mmix", so the rest of the framework works. Let $SIM
35 # override.
36 if {![board_info $board exists sim]} {
37 if {[info exists SIM]} {
38 set_board_info sim $SIM
39 } else {
40 # Has to exist in the users path.
41 set_board_info sim mmix
45 # No default multilib options are needed for this board.
46 process_multilib_options ""
48 set_board_info is_simulator 1
50 # It isn't visible in the target triple, so we set it explicitly. The
51 # *linked* format is currently mmo, but those cases where this matters we
52 # can deal with separately.
53 set_board_info obj_format "elf"
55 # We only support newlib on this target. We assume that all multilib
56 # options have been specified before we get here.
57 set_board_info cflags "[newlib_include_flags]"
59 # We put the stack in the code segment, so trampolines work; the mmix
60 # simulator does not allow code to be executed in the "normal" documented
61 # data and stack segments. Use a somewhat magic number, so stack addresses
62 # are easily recognized when debugging.
63 set_board_info ldflags "[newlib_link_flags] -Wl,--defsym,__Stack_start=0x1680a00000000000"
65 # No linker script needed - the simulator is the main environment for this
66 # target.
67 set_board_info ldscript ""
69 # Return codes aren't supported by the simulator.
70 set_board_info needs_status_wrapper 1