1# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software 2# Foundation, Inc. 3# 4# This file is part of DejaGnu. 5# 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. 10# 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. 15# 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. 19 20# This is a list of toolchains that are supported on this board. 21set_board_info target_install {mmix-knuth-mmixware} 22 23# Load the generic configuration for this board. This will define any 24# routines needed to communicate with the board. 25load_generic_config "sim" 26 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.) 31unset_board_info slow_simulator 32 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 36# override. 37if ![board_info $board exists sim] { 38 if [info exists SIM] { 39 set_board_info sim $SIM 40 } else { 41 # Has to exist in the users path. 42 set_board_info sim mmix 43 } 44} 45 46# No default multilib options are needed for this board. 47process_multilib_options "" 48 49set_board_info is_simulator 1 50 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. 54set_board_info obj_format "elf" 55 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. 58set_board_info compiler "[find_gcc]" 59 60# We only support newlib on this target. We assume that all multilib 61# options have been specified before we get here. 62set_board_info cflags "[newlib_include_flags]" 63 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. 68set_board_info ldflags "[newlib_link_flags] -Wl,--defsym,__Stack_start=0x1680a00000000000" 69 70# No linker script needed - the simulator is the main environment for this 71# target. 72set_board_info ldscript "" 73 74# Return codes aren't supported by the simulator. 75set_board_info needs_status_wrapper 1 76 77# FIXME: Some gdb board variables are usually here. I currently have 78# no clue what to set them to, so I won't. 79