> > >TX39 Architectural Simulator Setup >
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"> REL="HOME"
TITLE="eCos User Guide"
HREF="ecos-user-guide.html"> REL="UP"
TITLE="Target Setup"
HREF="appendix-target-setup.html"> REL="PREVIOUS"
TITLE="TX39 Hardware Setup"
HREF="setup-tx39-jmr3904.html"> REL="NEXT"
TITLE="TX49 Hardware Setup"
HREF="setup-tx49-ref4955.html"> > CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
> CLASS="NAVHEADER"
> SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
> > COLSPAN="3"
ALIGN="center"
>eCos User Guide > > > WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
> HREF="setup-tx39-jmr3904.html"
ACCESSKEY="P"
>Prev > > WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Appendix A. Target Setup > WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
> HREF="setup-tx49-ref4955.html"
ACCESSKEY="N"
>Next > > > > ALIGN="LEFT"
WIDTH="100%"> > CLASS="SECT1"
> CLASS="SECT1"
> NAME="SETUP-TX39-SIM">TX39 Architectural Simulator Setup > >The TX39 simulator is an architectural simulator which implements
all the features of the Toshiba TX39 needed to run eCos. The current
implementation provides accurate simulation of the instruction set,
interrupt controller, and timers, as well as having generic support
for diagnostic output, serial I/O, and exceptions. > >In this release, you can run the same eCos binaries in the
simulator that can run on target hardware, if it is built for ROM
start-up. > >To simplify connection to the simulator, you are advised to
create a GDB macro by putting the following code in your personal
GDB start-up file (gdb.ini on Windows and .gdbinit on UNIX). > BORDER="5"
BGCOLOR="#E0E0F0"
WIDTH="70%"
> > > CLASS="PROGRAMLISTING"
>define tsim
target sim --board=jmr3904pal --memory-region 0xffff8000,0x900 \
--memory-region 0xffffe000,0x4 \
--memory-region 0xb2100000,0x4
rbreak cyg_test_exit
rbreak cyg_assert_fail
end > > > > >You can then connect to the simulator by invoking the command CLASS="COMMAND"
>tsim > on
the command line: > BORDER="5"
BGCOLOR="#E0E0F0"
WIDTH="70%"
> > > CLASS="PROGRAMLISTING"
>(gdb) tsim > > > > >You can achieve the same effect by typing out the macro’s
content on the command line if necessary. > > CLASS="NAVFOOTER"
> ALIGN="LEFT"
WIDTH="100%"> SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
> > WIDTH="33%"
ALIGN="left"
VALIGN="top"
> HREF="setup-tx39-jmr3904.html"
ACCESSKEY="P"
>Prev > > WIDTH="34%"
ALIGN="center"
VALIGN="top"
> HREF="ecos-user-guide.html"
ACCESSKEY="H"
>Home > > WIDTH="33%"
ALIGN="right"
VALIGN="top"
> HREF="setup-tx49-ref4955.html"
ACCESSKEY="N"
>Next > > > > WIDTH="33%"
ALIGN="left"
VALIGN="top"
>TX39 Hardware Setup > WIDTH="34%"
ALIGN="center"
VALIGN="top"
> HREF="appendix-target-setup.html"
ACCESSKEY="U"
>Up > > WIDTH="33%"
ALIGN="right"
VALIGN="top"
>TX49 Hardware Setup > > > > > >