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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-ppc-sim.html] - Blame information for rev 1254

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

Line No. Rev Author Line
1 1254 phoenix
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
2
<!-- This material may be distributed only subject to the terms      -->
3
<!-- and conditions set forth in the Open Publication License, v1.0  -->
4
<!-- or later (the latest version is presently available at          -->
5
<!-- http://www.opencontent.org/openpub/).                           -->
6
<!-- Distribution of the work or derivative of the work in any       -->
7
<!-- standard (paper) book form is prohibited unless prior           -->
8
<!-- permission is obtained from the copyright holder.               -->
9
<HTML
10
><HEAD
11
><TITLE
12
>PowerPC Architectural Simulator Setup</TITLE
13
><meta name="MSSmartTagsPreventParsing" content="TRUE">
14
<META
15
NAME="GENERATOR"
16
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17
"><LINK
18
REL="HOME"
19
TITLE="eCos User Guide"
20
HREF="ecos-user-guide.html"><LINK
21
REL="UP"
22
TITLE="Target Setup"
23
HREF="appendix-target-setup.html"><LINK
24
REL="PREVIOUS"
25
TITLE="PowerPC MBX860 Hardware Setup"
26
HREF="setup-ppc-mbx860.html"><LINK
27
REL="NEXT"
28
TITLE="SPARClite Hardware Setup"
29
HREF="setup-sparclite-sleb.html"></HEAD
30
><BODY
31
CLASS="SECT1"
32
BGCOLOR="#FFFFFF"
33
TEXT="#000000"
34
LINK="#0000FF"
35
VLINK="#840084"
36
ALINK="#0000FF"
37
><DIV
38
CLASS="NAVHEADER"
39
><TABLE
40
SUMMARY="Header navigation table"
41
WIDTH="100%"
42
BORDER="0"
43
CELLPADDING="0"
44
CELLSPACING="0"
45
><TR
46
><TH
47
COLSPAN="3"
48
ALIGN="center"
49
>eCos User Guide</TH
50
></TR
51
><TR
52
><TD
53
WIDTH="10%"
54
ALIGN="left"
55
VALIGN="bottom"
56
><A
57
HREF="setup-ppc-mbx860.html"
58
ACCESSKEY="P"
59
>Prev</A
60
></TD
61
><TD
62
WIDTH="80%"
63
ALIGN="center"
64
VALIGN="bottom"
65
>Appendix A. Target Setup</TD
66
><TD
67
WIDTH="10%"
68
ALIGN="right"
69
VALIGN="bottom"
70
><A
71
HREF="setup-sparclite-sleb.html"
72
ACCESSKEY="N"
73
>Next</A
74
></TD
75
></TR
76
></TABLE
77
><HR
78
ALIGN="LEFT"
79
WIDTH="100%"></DIV
80
><DIV
81
CLASS="SECT1"
82
><H1
83
CLASS="SECT1"
84
><A
85
NAME="SETUP-PPC-SIM">PowerPC Architectural Simulator Setup</H1
86
><P
87
>The PowerPC simulator is an architectural simulator which
88
implements all the features of the PowerPC needed to run eCos. The
89
current implementation provides accurate simulation of the instruction
90
set and timers, as well as having generic support for diagnostic
91
output  and exceptions.</P
92
><P
93
>The simulator also allows devices to be simulated, but no
94
device simulation support has been defined for the serial device
95
drivers in this release.</P
96
><P
97
>To simplify connection to the simulator, you are advised to
98
create a GDB macro by putting the following code in your personal
99
GDB start-up file (gdb.ini on Windows and .gdbinit on UNIX).</P
100
><TABLE
101
BORDER="5"
102
BGCOLOR="#E0E0F0"
103
WIDTH="70%"
104
><TR
105
><TD
106
><PRE
107
CLASS="PROGRAMLISTING"
108
>define psim
109
 target sim -o &#8217;/iobus/pal&commat;0xf0001000/reg 0xf0001000 32&#8217;
110
 rbreak cyg_test_exit
111
 rbreak cyg_assert_fail
112
end</PRE
113
></TD
114
></TR
115
></TABLE
116
><P
117
>You can then connect to the simulator by invoking the command <B
118
CLASS="COMMAND"
119
>psim</B
120
> on
121
the command line:</P
122
><TABLE
123
BORDER="5"
124
BGCOLOR="#E0E0F0"
125
WIDTH="70%"
126
><TR
127
><TD
128
><PRE
129
CLASS="PROGRAMLISTING"
130
>(gdb) psim</PRE
131
></TD
132
></TR
133
></TABLE
134
><P
135
>You can achieve the same effect by typing out the macro&#8217;s
136
content on the command line if necessary.</P
137
><DIV
138
CLASS="NOTE"
139
><BLOCKQUOTE
140
CLASS="NOTE"
141
><P
142
><B
143
>Note: </B
144
>The PowerPC simulator cannot execute binaries built for any
145
of the supported hardware targets. You must generate a configuration
146
using the PowerPC simulator platform:
147
<TABLE
148
BORDER="5"
149
BGCOLOR="#E0E0F0"
150
WIDTH="70%"
151
><TR
152
><TD
153
><PRE
154
CLASS="PROGRAMLISTING"
155
>$ ecosconfig new psim</PRE
156
></TD
157
></TR
158
></TABLE
159
>
160
 or some such.</P
161
></BLOCKQUOTE
162
></DIV
163
></DIV
164
><DIV
165
CLASS="NAVFOOTER"
166
><HR
167
ALIGN="LEFT"
168
WIDTH="100%"><TABLE
169
SUMMARY="Footer navigation table"
170
WIDTH="100%"
171
BORDER="0"
172
CELLPADDING="0"
173
CELLSPACING="0"
174
><TR
175
><TD
176
WIDTH="33%"
177
ALIGN="left"
178
VALIGN="top"
179
><A
180
HREF="setup-ppc-mbx860.html"
181
ACCESSKEY="P"
182
>Prev</A
183
></TD
184
><TD
185
WIDTH="34%"
186
ALIGN="center"
187
VALIGN="top"
188
><A
189
HREF="ecos-user-guide.html"
190
ACCESSKEY="H"
191
>Home</A
192
></TD
193
><TD
194
WIDTH="33%"
195
ALIGN="right"
196
VALIGN="top"
197
><A
198
HREF="setup-sparclite-sleb.html"
199
ACCESSKEY="N"
200
>Next</A
201
></TD
202
></TR
203
><TR
204
><TD
205
WIDTH="33%"
206
ALIGN="left"
207
VALIGN="top"
208
>PowerPC MBX860 Hardware Setup</TD
209
><TD
210
WIDTH="34%"
211
ALIGN="center"
212
VALIGN="top"
213
><A
214
HREF="appendix-target-setup.html"
215
ACCESSKEY="U"
216
>Up</A
217
></TD
218
><TD
219
WIDTH="33%"
220
ALIGN="right"
221
VALIGN="top"
222
>SPARClite Hardware Setup</TD
223
></TR
224
></TABLE
225
></DIV
226
></BODY
227
></HTML
228
>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.