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 |
# This tells it which directory to look in for the simulator. |
# This tells it which directory to look in for the simulator. |
13 |
setup_sim erc32; |
setup_sim erc32 |
14 |
|
|
15 |
# It needs no multilib flags by default. |
# It needs no multilib flags by default. |
16 |
process_multilib_options "" |
process_multilib_options "" |
17 |
|
|
18 |
set_board_info compiler "[find_gcc]"; |
set_board_info compiler "[find_gcc]" |
19 |
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]"; |
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]" |
20 |
set_board_info ldflags "-nostdlib -nostartfiles [libgloss_link_flags] [newlib_link_flags]"; |
set_board_info ldflags "-nostdlib -nostartfiles [libgloss_link_flags] [newlib_link_flags]" |
21 |
|
|
22 |
# ELF simulator linker script. |
# ELF simulator linker script. |
23 |
set_board_info ldscript "-Telfsim.ld"; |
set_board_info ldscript "-Telfsim.ld" |
24 |
|
|
25 |
# 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. |
26 |
set_board_info needs_status_wrapper 1; |
set_board_info needs_status_wrapper 1 |
27 |
|
|
28 |
# We can't pass arguments. |
# We can't pass arguments. |
29 |
set_board_info noargs 1; |
set_board_info noargs 1 |
30 |
# Or do signals. |
# Or do signals. |
31 |
set_board_info gdb,nosignals 1; |
set_board_info gdb,nosignals 1 |
32 |
|
|
33 |
# We want to specify the sparclite emulator in GDB. |
# We want to specify the sparclite emulator in GDB. |
34 |
set_board_info gdb,target_sim_options "-sparclite" |
set_board_info gdb,target_sim_options "-sparclite" |