1
# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software
4
# This file is part of DejaGnu.
6
# DejaGnu is free software; you can redistribute it and/or modify it
7
# under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 of the License, or
9
# (at your option) any later version.
11
# DejaGnu is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with DejaGnu; if not, write to the Free Software Foundation,
18
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
# This is a list of toolchains that are supported on this board.
21
set_board_info target_install {mmix-knuth-mmixware}
23
# Load the generic configuration for this board. This will define any
24
# routines needed to communicate with the board.
25
load_generic_config "sim"
27
# Unset the slow_simulator flag; this simulator isn't slow. (I haven't
28
# found documentation as to what constitutes a "slow" simulator and
29
# there's no reference to that variable in the GCC test-suite, but all
30
# tests I've found work.)
31
unset_board_info slow_simulator
33
# We don't use basic-sim.exp and setup_sim because the simulator, called
34
# "mmix", is external to the build tree. If nobody set the simulator
35
# name, we set it to "mmix", so the rest of the framework works. Let $SIM
37
if ![board_info $board exists sim] {
38
if [info exists SIM] {
39
set_board_info sim $SIM
41
# Has to exist in the users path.
42
set_board_info sim mmix
46
# No default multilib options are needed for this board.
47
process_multilib_options ""
49
set_board_info is_simulator 1
51
# It isn't visible in the target triple, so we set it explicitly. The
52
# *linked* format is currently mmo, but those cases where this matters we
53
# can deal with separately.
54
set_board_info obj_format "elf"
56
# The compiler used to build for this board. This has *nothing* to do
57
# with what compiler is tested if we're testing gcc.
58
set_board_info compiler "[find_gcc]"
60
# We only support newlib on this target. We assume that all multilib
61
# options have been specified before we get here.
62
set_board_info cflags "[newlib_include_flags]"
64
# We put the stack in the code segment, so trampolines work; the mmix
65
# simulator does not allow code to be executed in the "normal" documented
66
# data and stack segments. Use a somewhat magic number, so stack addresses
67
# are easily recognized when debugging.
68
set_board_info ldflags "[newlib_link_flags] -Wl,--defsym,__Stack_start=0x1680a00000000000"
70
# No linker script needed - the simulator is the main environment for this
72
set_board_info ldscript ""
74
# Return codes aren't supported by the simulator.
75
set_board_info needs_status_wrapper 1
77
# FIXME: Some gdb board variables are usually here. I currently have
78
# no clue what to set them to, so I won't.