Blame baseboards/sparclite-sim-le.exp

Packit 62fe53
# Copyright (C) 1997-2016 Free Software Foundation, Inc.
Packit 62fe53
#
Packit 62fe53
# This file is part of DejaGnu.
Packit 62fe53
#
Packit 62fe53
# DejaGnu is free software; you can redistribute it and/or modify it
Packit 62fe53
# under the terms of the GNU General Public License as published by
Packit 62fe53
# the Free Software Foundation; either version 3 of the License, or
Packit 62fe53
# (at your option) any later version.
Packit 62fe53
#
Packit 62fe53
# DejaGnu is distributed in the hope that it will be useful, but
Packit 62fe53
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 62fe53
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 62fe53
# General Public License for more details.
Packit 62fe53
#
Packit 62fe53
# You should have received a copy of the GNU General Public License
Packit 62fe53
# along with DejaGnu; if not, write to the Free Software Foundation,
Packit 62fe53
# Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
Packit 62fe53
Packit 62fe53
# This is a list of toolchains that are supported on this board.
Packit 62fe53
set_board_info target_install {sparclite-elf}
Packit 62fe53
Packit 62fe53
# Load the generic configuration for this board. This will define a
Packit 62fe53
# set of generic routines used by the tool to communicate with the
Packit 62fe53
# board.
Packit 62fe53
load_generic_config "sim"
Packit 62fe53
Packit 62fe53
# basic-sim.exp is a basic description for the standard Cygnus simulator.
Packit 62fe53
load_base_board_description "basic-sim"
Packit 62fe53
Packit 62fe53
if {![info exists board_info($board,multilib_flags)]} {
Packit 62fe53
    set board_info($board,multilib_flags) "-mlittle-endian-data"
Packit 62fe53
}
Packit 62fe53
Packit 62fe53
# This tells it which directory to look in for the simulator.
Packit 62fe53
setup_sim erc32
Packit 62fe53
Packit 62fe53
# It needs no multilib flags by default.
Packit 62fe53
process_multilib_options ""
Packit 62fe53
Packit 62fe53
set_board_info compiler  "[find_gcc]"
Packit 62fe53
set_board_info cflags  "[newlib_include_flags] [libgloss_include_flags]"
Packit 62fe53
set_board_info ldflags  "-nostdlib -nostartfiles [libgloss_link_flags] [newlib_link_flags]"
Packit 62fe53
Packit 62fe53
# ELF simulator linker script.
Packit 62fe53
set_board_info ldscript "-Telfsim.ld"
Packit 62fe53
Packit 62fe53
# The simulator doesn't return exit statuses and we need to indicate this.
Packit 62fe53
set_board_info needs_status_wrapper 1
Packit 62fe53
Packit 62fe53
# We use a GDB stub to talk to the board.
Packit 62fe53
# set_board_info use_gdb_stub 1
Packit 62fe53
# For GDB, we need to use a real stub (not the separate loader scheme
Packit 62fe53
# we use for Sparclet).
Packit 62fe53
# set_board_info gdb_stub  ""
Packit 62fe53
# No mathlib.
Packit 62fe53
# set_board_info mathlib  ""
Packit 62fe53
# We can't do I/O in GDB.
Packit 62fe53
# set_board_info gdb,noinferiorio 1
Packit 62fe53
# Or pass arguments.
Packit 62fe53
set_board_info noargs 1
Packit 62fe53
# Or do signals.
Packit 62fe53
set_board_info gdb,nosignals 1
Packit 62fe53
Packit 62fe53
#We want to specify the sparclite emulator in GDB.
Packit 62fe53
set_board_info gdb,target_sim_options "-sparclite"