OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [boards/] [or32-elf-sim.exp] - Diff between revs 453 and 507

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 453 Rev 507
#!/bin/bash
#!/bin/bash
# Copyright (C) 2010 Embecosm Limited
# Copyright (C) 2010 Embecosm Limited
# Contributor Jeremy Bennett 
# Contributor Jeremy Bennett 
# Contributor Joern Rennecke 
# Contributor Joern Rennecke 
# This file is a board description for testing OpenRISC with newlib and Or1ksim
# This file is a board description for testing OpenRISC with newlib and Or1ksim
# This program is free software; you can redistribute it and/or modify it
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
# any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
# more details.
# You should have received a copy of the GNU General Public License along
# You should have received a copy of the GNU General Public License along
# with this program.  If not, see .
# with this program.  If not, see .
# This is a list of toolchains that are supported on this board.
# This is a list of toolchains that are supported on this board.
set_board_info target_install {or32-elf}
set_board_info target_install {or32-elf}
# Load the generic configuration for this board. This will define a basic set
# Load the generic configuration for this board. This will define a basic set
# of routines needed by the tool to communicate with the board.
# of routines needed by the tool to communicate with the board.
load_generic_config "sim"
load_generic_config "sim"
# basic-sim.exp is a basic description for the standard Cygnus simulator.
# basic-sim.exp is a basic description for the standard Cygnus simulator.
load_base_board_description "basic-sim"
load_base_board_description "basic-sim"
# The name of the sim subdir in src/sim.
# The name of the sim subdir in src/sim.
setup_sim or32
setup_sim or32
# Options for the simulator
# Options for the simulator
# set cfg_file [lookfor_file ${srcdir} libgloss/or32/sim.cfg]
# set cfg_file [lookfor_file ${srcdir} libgloss/or32/sim.cfg]
# set_board_info sim,options "-a \"-f ${cfg_file}\""
# set_board_info sim,options "-a \"-f ${cfg_file}\""
# No multilib options needed by default.
# No multilib options needed by default.
process_multilib_options ""
process_multilib_options ""
# We only support newlib on this
# We only support newlib on this
# target.  We assume that all multilib options have been specified
# target.  We assume that all multilib options have been specified
# before we get here.
# before we get here.
# We do not specify the newlib include flags, since our strange file structure
# We do not specify the newlib include flags, since our strange file structure
# doesn't work with the standard expect commands, and will end up generating a
# doesn't work with the standard expect commands, and will end up generating a
# blank -isystem option, which confuses things severely.
# blank -isystem option, which confuses things severely.
 
 
# It's sufficient just to specify -mor32-newlib. Bit of a shame to specify it
# It's sufficient just to specify -mnewlib. Bit of a shame to
# both in cflags, which are also used when linking, so we'll get the libraries
# specify it both in cflags, which are also used when linking, so we'll get
# OK as well.
# the libraries OK as well.
set_board_info compiler  "[find_gcc]"
set_board_info compiler  "[find_gcc]"
set_board_info cflags    "-mor32-newlib"
set_board_info cflags    "-mnewlib -mboard=or1ksim"
 
 
# No linker script needed.
# No linker script needed.
set_board_info ldscript ""
set_board_info ldscript ""
# This simulator isn't slow.
# This simulator isn't slow.
set_board_info slow_simulator 0
set_board_info slow_simulator 0
# Can't pass arguments to programs on this target..
# Can't pass arguments to programs on this target..
set_board_info noargs  1
set_board_info noargs  1
# Used by a few gcc.c-torture testcases to delimit how large the stack can
# Used by a few gcc.c-torture testcases to delimit how large the stack can
# be.
# be.
set_board_info gcc,stack_size 65536
set_board_info gcc,stack_size 65536
# GDB options
# GDB options
# We can't do input in GDB (yet! HA!). It *will* do output, hurrah.
# We can't do input in GDB (yet! HA!). It *will* do output, hurrah.
set_board_info gdb,noinferiorio 1
set_board_info gdb,noinferiorio 1
# Or pass arguments.
# Or pass arguments.
set_board_info gdb,noargs  1
set_board_info gdb,noargs  1
set_board_info noargs 1
set_board_info noargs 1
# And there's no support for signals.
# And there's no support for signals.
set_board_info gdb,nosignals  1
set_board_info gdb,nosignals  1
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.