|
| 1 | +# Copyright (C) 1997-2019, 2020 Free Software Foundation, Inc. |
| 2 | +# |
| 3 | +# This file is part of DejaGnu. For ARC target simulation. |
| 4 | +# |
| 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 2 of the License, or |
| 8 | +# (at your option) any later version. |
| 9 | +# |
| 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. |
| 14 | +# |
| 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. |
| 18 | + |
| 19 | +# Load the generic configuration for this board. This will define a basic |
| 20 | +# set of routines used to communicate with the board. |
| 21 | +load_generic_config "sim" |
| 22 | + |
| 23 | +# basic-sim.exp is a basic description for the standard Cygnus simulator. |
| 24 | +load_base_board_description "basic-sim" |
| 25 | + |
| 26 | +# This tells it which directory to look in for the simulator. |
| 27 | +setup_sim arc |
| 28 | + |
| 29 | +# No multilib flags are set by default. |
| 30 | +process_multilib_options "" |
| 31 | + |
| 32 | +# Select the right spec file |
| 33 | +set xldflags "" |
| 34 | +case "$target_triplet" in { |
| 35 | + { arc*-*elf* } { |
| 36 | + set xldflags "--specs=nsim.specs -Wl,--defsym=__DEFAULT_HEAP_SIZE=256m \ |
| 37 | + -Wl,--defsym=__DEFAULT_STACK_SIZE=1024m" |
| 38 | + } |
| 39 | +} |
| 40 | + |
| 41 | +# The compiler used to build for this board. This has *nothing* to do |
| 42 | +# with what compiler is tested if we're testing gcc. |
| 43 | +set_board_info compiler "[find_gcc]" |
| 44 | + |
| 45 | +# The basic set of flags needed to build "hello world" for this |
| 46 | +# board. This board uses libgloss and newlib. |
| 47 | +set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]" |
| 48 | +set_board_info ldflags "[libgloss_link_flags] $xldflags [newlib_link_flags]" |
| 49 | + |
| 50 | +# This board doesn't use a linker script. |
| 51 | +set_board_info ldscript "" |
| 52 | + |
| 53 | +# And, it can't do arguments, and doesn't have real signals. |
| 54 | + |
| 55 | +set_board_info noargs 1 |
| 56 | +set_board_info gdb,nosignals 1 |
| 57 | +set_board_info sim_time_limit 300 |
| 58 | + |
| 59 | +# skip gdb.reverse |
| 60 | +set_board_info gdb,can_reverse 0 |
| 61 | +set_board_info gdb,use_precord 0 |
| 62 | + |
| 63 | +# Setup the timeout |
| 64 | +set_board_info gcc,timeout 600 |
0 commit comments