-
Notifications
You must be signed in to change notification settings - Fork 157
/
zip-sim.exp
58 lines (42 loc) · 1.57 KB
/
zip-sim.exp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
set_board_info target_install "{zip}"
# Load the generic configuration for the board. This will define a basic
# set of routines needed by the tool to communicate with the board.
load_generic_config "sim"
# basic-sim.exp is a basic description for the standard Cygnus simulator
load_base_board_description "basic-sim"
# zip is the name of the sim subdir
setup_sim zip
# No multilib options needed by default
process_multilib_options ""
# The compiler used to build for this board. This has *nothing* to do with what
# compiler is tested if we're testing gcc.
set_board_info compiler "[find_gcc]"
# We only support newlib on this targte.
# However, we include libgloss so we can find the linker scripts
set_board_info cflags "[newlib_include_flags] [libgloss_include_flags]"
set_board_info ldflags "[newlib_link_flags] -lzipbasic"
# For now, the simulator won't return an exit status and we'll need to indicate
# this, the standard GCC wrapper will work with this target.
set_board_info needs_status_wrapper 1
# The linker script for this board
set_board_info ldscript "-Tzipsim.ld"
# Can't pass arguments to this target
set_board_info noargs 1
# No signals
set_board_info gdb,nosignals 1
# Cant return results
set_board_info gdb,noresults 1
# Doesnt do inferiori
set_board_info gdb,noinferiorio 1
# And it can't call functions
set_board_info gdb,cannot_call_functions 1
#
#
# Okay, so some of my own fields here
#
# First, the command to run the ZipCPU simulator
set_board_info sim zip-sim
set_board_info objcopy zip-objcopy
set_board_info is_simulator 1
set_board_info gdb,reload_on_run 1