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 >MN10300 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
26 HREF="appendix-target-setup.html"><LINK
28 TITLE="AM33 STB Hardware Setup"
29 HREF="setup-am33-stb.html"></HEAD
40 SUMMARY="Header navigation table"
57 HREF="appendix-target-setup.html"
65 >Appendix A. Target Setup</TD
71 HREF="setup-am33-stb.html"
85 NAME="SETUP-MN10300-SIM">MN10300 Architectural Simulator Setup</H1
87 >The MN10300 simulator is an architectural simulator for the
88 Matsushita MN10300 that implements all features of the microprocessor
89 necessary to run eCos. The current implementation provides accurate
90 simulation of the instruction set, interrupt controller, timers,
93 >In this release, you can run the same eCos binaries in the
94 simulator that can run on target hardware, if built for ROM start-up,
95 with the exception of those that use the watchdog timer.</P
97 >However, note that AM33 devices required to run eCos are not
98 simulated; therefore you cannot run eCos binaries built for the
99 AM33 under the simulator. For the AM33, the simulator is effectively
100 an instruction-set only simulator.</P
102 >To simplify connection to the simulator, you are advised to
103 create a GDB macro by putting the following code in your personal
104 GDB start-up file (gdb.ini on Windows and .gdbinit on UNIX).</P
112 CLASS="PROGRAMLISTING"
114 target sim --board=stdeval1 --memory-region 0x34004000,0x8
117 rbreak cyg_assert_fail
123 >You can then connect to the simulator by invoking the command <TABLE
130 CLASS="PROGRAMLISTING"
144 CLASS="PROGRAMLISTING"
150 >You can achieve the same effect by typing out the macro’s
151 content on the command line if necessary.</P
158 SUMMARY="Footer navigation table"
169 HREF="appendix-target-setup.html"
178 HREF="ecos-user-guide.html"
187 HREF="setup-am33-stb.html"
203 HREF="appendix-target-setup.html"
211 >AM33 STB Hardware Setup</TD