4 |
# Load the generic configuration for this board. This will define a |
# Load the generic configuration for this board. This will define a |
5 |
# set of generic routines used by the tool to communicate with the |
# set of generic routines used by the tool to communicate with the |
6 |
# board. |
# board. |
7 |
load_generic_config "sim"; |
load_generic_config "sim" |
8 |
|
|
9 |
# basic-sim.exp is a basic description for the standard Cygnus simulator. |
# basic-sim.exp is a basic description for the standard Cygnus simulator. |
10 |
load_base_board_description "basic-sim"; |
load_base_board_description "basic-sim" |
11 |
|
|
12 |
if ![info exists board_info($board,multilib_flags)] { |
if ![info exists board_info($board,multilib_flags)] { |
13 |
set board_info($board,multilib_flags) "-mlittle-endian-data" |
set board_info($board,multilib_flags) "-mlittle-endian-data" |
14 |
} |
} |
15 |
|
|
16 |
# This tells it which directory to look in for the simulator. |
# This tells it which directory to look in for the simulator. |
17 |
setup_sim erc32; |
setup_sim erc32 |
18 |
|
|
19 |
# It needs no multilib flags by default. |
# It needs no multilib flags by default. |
20 |
process_multilib_options "" |
process_multilib_options "" |
21 |
|
|
22 |
set_board_info compiler "[find_gcc]"; |
set_board_info compiler "[find_gcc]" |
23 |
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]"; |
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]" |
24 |
set_board_info ldflags "-nostdlib -nostartfiles [libgloss_link_flags] [newlib_link_flags]"; |
set_board_info ldflags "-nostdlib -nostartfiles [libgloss_link_flags] [newlib_link_flags]" |
25 |
|
|
26 |
# ELF simulator linker script. |
# ELF simulator linker script. |
27 |
set_board_info ldscript "-Telfsim.ld"; |
set_board_info ldscript "-Telfsim.ld" |
28 |
|
|
29 |
# The simulator doesn't return exit statuses and we need to indicate this. |
# The simulator doesn't return exit statuses and we need to indicate this. |
30 |
set_board_info needs_status_wrapper 1; |
set_board_info needs_status_wrapper 1 |
31 |
|
|
32 |
# We use a GDB stub to talk to the board. |
# We use a GDB stub to talk to the board. |
33 |
# set_board_info use_gdb_stub 1; |
# set_board_info use_gdb_stub 1 |
34 |
# For GDB, we need to use a real stub (not the separate loader scheme |
# For GDB, we need to use a real stub (not the separate loader scheme |
35 |
# we use for Sparclet). |
# we use for Sparclet). |
36 |
# set_board_info gdb_stub ""; |
# set_board_info gdb_stub "" |
37 |
# No mathlib. |
# No mathlib. |
38 |
# set_board_info mathlib ""; |
# set_board_info mathlib "" |
39 |
# We can't do I/O in GDB. |
# We can't do I/O in GDB. |
40 |
# set_board_info gdb,noinferiorio 1; |
# set_board_info gdb,noinferiorio 1 |
41 |
# Or pass arguments. |
# Or pass arguments. |
42 |
set_board_info noargs 1; |
set_board_info noargs 1 |
43 |
# Or do signals. |
# Or do signals. |
44 |
set_board_info gdb,nosignals 1; |
set_board_info gdb,nosignals 1 |
45 |
|
|
46 |
#We want to specify the sparclite emulator in GDB. |
#We want to specify the sparclite emulator in GDB. |
47 |
set_board_info gdb,target_sim_options "-sparclite" |
set_board_info gdb,target_sim_options "-sparclite" |