OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [boards/] [or32-elf-sim.exp] - Blame information for rev 837

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 453 jeremybenn
#!/bin/bash
2
 
3
# Copyright (C) 2010 Embecosm Limited
4
 
5
# Contributor Jeremy Bennett 
6
# Contributor Joern Rennecke 
7
 
8
# This file is a board description for testing OpenRISC with newlib and Or1ksim
9
 
10
# This program is free software; you can redistribute it and/or modify it
11
# under the terms of the GNU General Public License as published by the Free
12
# Software Foundation; either version 3 of the License, or (at your option)
13
# any later version.
14
 
15
# This program is distributed in the hope that it will be useful, but WITHOUT
16
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
18
# more details.
19
 
20
# You should have received a copy of the GNU General Public License along
21
# with this program.  If not, see .
22
 
23
# This is a list of toolchains that are supported on this board.
24
set_board_info target_install {or32-elf}
25
 
26
# Load the generic configuration for this board. This will define a basic set
27
# of routines needed by the tool to communicate with the board.
28
load_generic_config "sim"
29
 
30
# basic-sim.exp is a basic description for the standard Cygnus simulator.
31
load_base_board_description "basic-sim"
32
 
33
# The name of the sim subdir in src/sim.
34
setup_sim or32
35
 
36
# Options for the simulator
37
# set cfg_file [lookfor_file ${srcdir} libgloss/or32/sim.cfg]
38
# set_board_info sim,options "-a \"-f ${cfg_file}\""
39
 
40
# No multilib options needed by default.
41
process_multilib_options ""
42
 
43
# We only support newlib on this
44
# target.  We assume that all multilib options have been specified
45
# before we get here.
46
 
47
# We do not specify the newlib include flags, since our strange file structure
48
# doesn't work with the standard expect commands, and will end up generating a
49
# blank -isystem option, which confuses things severely.
50
 
51 522 jeremybenn
# It's sufficient just to specify -mnewlib, but we explicitly specify
52
# -mboard=or1ksim, althoug at present that is the default anyway.
53 453 jeremybenn
set_board_info compiler  "[find_gcc]"
54 663 jeremybenn
set_board_info cflags    "-mnewlib -mboard=or1ksim"
55 453 jeremybenn
 
56
# No linker script needed.
57
set_board_info ldscript ""
58
 
59
# This simulator isn't slow.
60
set_board_info slow_simulator 0
61
 
62
# Can't pass arguments to programs on this target..
63
set_board_info noargs  1
64
 
65
# Used by a few gcc.c-torture testcases to delimit how large the stack can
66
# be.
67
set_board_info gcc,stack_size 65536
68
 
69
# GDB options
70
 
71
# We can't do input in GDB (yet! HA!). It *will* do output, hurrah.
72
set_board_info gdb,noinferiorio 1
73
# Or pass arguments.
74
set_board_info gdb,noargs  1
75
set_board_info noargs 1
76
# And there's no support for signals.
77
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.