1 <!-- 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. -->
12 >PowerPC Architectural Simulator Setup</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos User Guide"
20 HREF="ecos-user-guide.html"><LINK
23 HREF="appendix-target-setup.html"><LINK
25 TITLE="PowerPC MBX860 Hardware Setup"
26 HREF="setup-ppc-mbx860.html"><LINK
28 TITLE="SPARClite Hardware Setup"
29 HREF="setup-sparclite-sleb.html"></HEAD
40 SUMMARY="Header navigation table"
57 HREF="setup-ppc-mbx860.html"
65 >Appendix A. Target Setup</TD
71 HREF="setup-sparclite-sleb.html"
85 NAME="SETUP-PPC-SIM">PowerPC Architectural Simulator Setup</H1
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
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
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
107 CLASS="PROGRAMLISTING"
109 target sim -o ’/iobus/pal@0xf0001000/reg 0xf0001000 32’
111 rbreak cyg_assert_fail
117 >You can then connect to the simulator by invoking the command <B
129 CLASS="PROGRAMLISTING"
135 >You can achieve the same effect by typing out the macro’s
136 content on the command line if necessary.</P
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:
154 CLASS="PROGRAMLISTING"
155 >$ ecosconfig new psim</PRE
169 SUMMARY="Footer navigation table"
180 HREF="setup-ppc-mbx860.html"
189 HREF="ecos-user-guide.html"
198 HREF="setup-sparclite-sleb.html"
208 >PowerPC MBX860 Hardware Setup</TD
214 HREF="appendix-target-setup.html"
222 >SPARClite Hardware Setup</TD