1 |
578 |
markom |
# This is a list of toolchains that are supported on this board.
|
2 |
|
|
set_board_info target_install {d10v-elf}
|
3 |
|
|
|
4 |
|
|
# Load the generic configuration for this board. This will define a base set
|
5 |
|
|
# of routines needed by the tool to communicate with the board.
|
6 |
|
|
load_generic_config "d10v"
|
7 |
|
|
|
8 |
|
|
# No multilib options are needed by default for this board.
|
9 |
|
|
process_multilib_options "";
|
10 |
|
|
|
11 |
|
|
# We only support newlib on this target. We assume that all multilib
|
12 |
|
|
# options have been specified before we get here.
|
13 |
|
|
set_board_info compiler "[find_gcc]";
|
14 |
|
|
set_board_info cflags "[newlib_include_flags]";
|
15 |
|
|
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]";
|
16 |
|
|
# No linker script needed.
|
17 |
|
|
set_board_info ldscript "";
|
18 |
|
|
|
19 |
|
|
# The board can't really return exit statuses and we need to indicate this;
|
20 |
|
|
# however, the standard GCC wrapper won't work with this target because
|
21 |
|
|
# it can't do I/O.
|
22 |
|
|
#set_board_info needs_status_wrapper 1
|
23 |
|
|
|
24 |
|
|
# It uses the remote stub protocol to talk to the board.
|
25 |
|
|
set_board_info gdb_protocol "remote"
|
26 |
|
|
set_board_info use_gdb_stub 1
|
27 |
|
|
|
28 |
|
|
# Both the EVA and TS3 boards currently deal badly with X packets.
|
29 |
|
|
set_board_info disable_x_packet 1
|
30 |
|
|
|
31 |
|
|
# Both the EVA and TS3 boards currently deal badly with Z packets.
|
32 |
|
|
set_board_info disable_z_packet 1
|
33 |
|
|
|
34 |
|
|
# Used by gdb-comm.
|
35 |
|
|
set_board_info gdb_run_command "jump *_start";
|
36 |
|
|
set_board_info gdb,start_symbol "_start";
|
37 |
|
|
|
38 |
|
|
# Can't pass arguments to programs on this target.
|
39 |
|
|
set_board_info noargs 1
|
40 |
|
|
# And there's no support for signals.
|
41 |
|
|
set_board_info gdb,nosignals 1
|
42 |
|
|
# And it can't do I/O.
|
43 |
|
|
set_board_info gdb,noinferiorio 1
|
44 |
|
|
|
45 |
|
|
# Used by a few gcc.c-torture testcases to delimit how large the stack can
|
46 |
|
|
# be.
|
47 |
|
|
set_board_info gcc,stack_size 5000
|
48 |
|
|
|
49 |
|
|
# Used by a few gcc.c-torture testcases when trampolines are used.
|
50 |
|
|
set_board_info gcc,no_trampolines 1
|
51 |
|
|
|
52 |
|
|
# Used by a few gcc.c-torture testcases when labels as values are used.
|
53 |
|
|
set_board_info gcc,no_label_values 1
|
54 |
|
|
|
55 |
|
|
# sizeof int != sizeof long.
|
56 |
|
|
set_board_info gdb,short_int 1
|
57 |
|
|
|
58 |
|
|
# Some d10v:ts3 boards are in ts2-board compatibility mode after a reset.
|
59 |
|
|
# Force it into d10v:ts3 internal mode
|
60 |
|
|
set_board_info gdb_init_command "set \$dmap2 = 0x2000"
|