aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32
AgeCommit message (Collapse)AuthorFilesLines
1998-06-02 * interf.c (sim_open): Use revamped memory_read, which makesMark Alexander3-168/+395
byte-swapping unnecessary. Add -sparclite-board option for emulating RAM found on typical SPARClite boards. Print error message for unrecognized option. * erc32.c: Change RAM address and size from constants to variables, to allow emulation of SPARClite board RAM. (fetch_bytes, store_bytes): New helper functions for revamped mememory_read and memory_write. (memory_read, memory_write): Rewrite to store bytes in target byte order instead of storing words in host byte order; this greatly simplifies support of little-endian programs. (get_mem_ptr): Remove unnecessary byte parameter. (sis_memory_write, sis_memory_read): Store words in target byte order instead of host byte order. (byte_swap_words): Remove, no longer needed. * sis.h ((byte_swap_words): Remove declaration, no longer needed. (memory_read): Add new sz parameter. * sis.c (run_sim): Use revamped memory_read, which makes byte-swapping unnecessary. * exec.c (dispatch_instruction): Use revamped memory_read, which makes byte-swapping and double-word fetching unnecessary. * func.c (sparclite_board): Declare new variable. (get_regi): Handle little-endian data. (bfd_load): Recognize little-endian SPARClite as having little-endian data.
1998-05-16 * erc32.c (close_port): Don't close stdin; it kills GDB.Doug Evans1-0/+8
(byte_swap_words): New function. * sis.h: (byte_swap_words): Declare. * interf.c (run_sim): Always fetch instructions as big-endian. * sis.c (run_sim): Ditto. Move this c/l entry from ../ChangeLog.
1998-05-15 * sis.h (uint64, int64): Define.Mark Alexander1-0/+13
* exec.c (SDIV, SDIVCC, UDIV, UDIVCC): Define new opcodes. * (mul64): Simplify calculation of negative result. * (div64): New helper function for 64-bit division. * (dispatch_instruction): Add emulation of SDIV, SDIVCC, UDIV, and UDIVCC.
1998-04-26 * configure: Regenerated to track ../common/aclocal.m4 changes.Tom Tromey5-123/+151
* config.in: Ditto. * acconfig.h: New file. * configure.in: Reverted change of Apr 24; use sinclude again.
1998-04-24 * configure: Regenerated to track ../common/aclocal.m4 changes.Tom Tromey3-39/+1855
* config.in: Ditto. * configure.in: Don't call sinclude.
1998-04-09 * erc32.c (sim_stop): Handle SIGINT gracefully.Mark Alexander1-0/+5
* interf.c (sim_open): Don't catch SIGINT; GDB will do that for us.
1998-04-09 * exec.c (dispatch_instruction): Change how carry out is calculatedMark Alexander1-0/+5
in DIVSCC. Add emulation of SMULCC, UMUL, and UMULCC.
1998-04-04Cleanup INLINE support for simulators using common framework.Andrew Cagney1-0/+16
Make IGEN responsible for co-ordinating inlining of generated files. By default, aclocal.m4 disabled all inlining.
1998-03-27Do top level sim-hw module for device tree.Andrew Cagney1-0/+21
Add to aclocal.m4, update all configure files.
1998-01-31Add config support for the size of the target address and OF cell.Andrew Cagney1-0/+4
1998-01-20* aclocal.m4: Recognize --enable-maintainer-mode.Doug Evans2-46/+102
*/configure: Regenerated.
1997-09-23Remove need to update <targ>/Makefile.in when adding optional optionsAndrew Cagney2-72/+392
to <targ>/configure.in. Simplify logic used to select target [default] endianness.
1997-09-22Simplify logic behind the generic configuration option --enable-sim-alignment.Andrew Cagney1-0/+4
1997-09-22Add support for --enable-sim-alignment to simulator common aclocal.m4Andrew Cagney1-0/+8
Add support for --alignment={strict,nonstrict,forced} to simulator common run-time options. For v850 use, make the default NONSTRICT_ALIGNMENT.
1997-08-27Fix doco on enable-sim-inline.Andrew Cagney1-0/+5
1997-08-27Add ABFD argument to sim_create_inferior. Document.Andrew Cagney1-0/+6
Add file sim-hload.c - generic load for hardware only simulators. Review each simulators sim_open, sim_load, sim_create_inferior so that they more closely match required behavour.
1997-08-26Flush defunct sim_kill.Andrew Cagney2-5/+4
1997-08-25Add ABFD argument to sim_open call. Pass through to sim_config soAndrew Cagney2-5/+30
that image properties such as endianness can be checked. More strongly document the expected behavour of each of the sim_* interfaces. Add default endian argument to simulator config macro SIM_AC_OPTION_ENDIAN. Use in sim_config.
1997-04-22 * interf.c (sim_open): Undo patch to add -E support.David Edelsohn2-2/+4
1997-04-17 * interf.c (sim_open): Ignore -E arg.David Edelsohn2-40/+61
(start_address): New static local. (sim_load): Return SIM_RC. New arg abfd. Set start_address from bfd. (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1997-04-15 * Makefile.in (install-sis): Depend upon installdirs. UseIan Lance Taylor1-0/+11
$(program_transform_name) directly, rather than using $(INSTALL_XFORM).
1997-04-07Get configure to define RETSIGTYPEAndrew Cagney2-195/+119
1997-04-02 * interf.c (sim_open): New arg `kind'.David Edelsohn1-0/+2
1997-04-02 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.David Edelsohn2-138/+289
(sim-debug): Allow arguments. Define WITH_DEBUG in addition to -DDEBUG. * configure: Regenerated to track ../common/aclocal.m4 changes.
1997-04-02New file common/sim-config.c sets/checks simulator configuration options.Andrew Cagney2-48/+36
Update common/aclocal.m4 to better work with sim-config.[hc].
1997-03-17 * configure: Re-generate.Andrew Cagney1-199/+126
* Make-common.in (CSEARCH): Do not include the gdb directory in the search path. * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE, SIM_WARNING): Drop, requiring the simulator specific Makefile.in to explicitly incorporate these. * aclocal.m4 (--enable-sim-alignment); New option. Strongly specify the alignment restrictions of the target architecture - without this option all alignment restrictions are accomodated. (--enable-sim-assert): New option. Conditionally compile in assertion statements. (--enable-sim-float): New option. Strongly specify the target's floating point support. (--enable-sim-hardware): New option. Specify the hardware devices included in the simulation. (--enable-sim-packages): New option. Specify the hardware packages included in the simulation. (--enable-sim-regparm): New option. Specify that parameters be passed in registers instead of on the stack. (--enable-sim-reserved-bits): New option. Specify that reserved bits within an instruction are are correctly set. (--enable-sim-smp): New option. Specify the level of SMP support to be included in the simulator. (--enable-sim-stdcall): New option. Specify an alternative function call convention. (--enable-sim-xor-endian): New option. Configure xor-endian support used by some targets to implement bi-endian support.
1997-03-14Regenerate simulator configure scripts; Remove d10v traps 1-3, Make 15 the ↵Michael Meissner1-305/+62
system call trap, keeping 0 temporarily
1997-03-13 * interf.c (sim_open): New SIM_DESC result. Argument is now inDavid Edelsohn1-0/+13
argv form. (other sim_*): New SIM_DESC argument.
1997-02-04 * Makefile.in (@COMMON_MAKEFILE_FRAG): UseDavid Edelsohn1-1/+2
COMMON_{PRE,POST}_CONFIG_FRAG instead. * configure.in: sinclude ../common/aclocal.m4. * configure: Regenerated.
1997-01-24 * ../common/aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s inStu Grossman1-2/+2
comments and single quotes. Fixes a problem found on hpux.
1997-01-24 * configure: Remove targ-vals.def when doing distclean. (ChangeStu Grossman1-1/+1
is actually in ../common/aclocal.m4.)
1997-01-24 * configure: Remove Make-common.in from dependencies. (Actually inStu Grossman1-1/+1
../common/aclocal.m4).
1997-01-23 * configure configure.in Makefile.in: Update to new configureStu Grossman4-7/+1875
scheme which is more compatible with WinGDB builds. * configure.in: Improve comment on how to run autoconf. * configure: Re-run autoconf to get new ../common/aclocal.m4. * Makefile.in: Use autoconf substitution to install common makefile fragment.
1996-12-16 Link with SIM_EXTRA_LIBS, not just EXTRA_LIBS, which is never set.Rob Savoye1-3/+12
1996-12-04 * configure.in: Look for libtermcap.a.Rob Savoye3-64/+132
* Makefile.in: Only link in -ltermcap if it exists. * erc32.c: Update to version 2.6a. Fix uart handling. * exec.c: Update to version 2.6a. Add sparclite support. * float.c: Update to version 2.6a. Convert comments to preprocessor warnings. Add __setfpucw() for i385 hosts so floating point exceptions work. * func.c: Update to version 2.6a. Fix uart handling, add support for user error traps. * help.c: Update to version 2.6a. Add help note on user error traps. * interf.c: Update to version 2.6a. Fix uart handling, and add sparclite support. * examples/gccx: Use sparclite cross compiler, not native gcc. * examples/srt0.S: Use "mov" rather than "wr" for manipulating the psr register.
1996-11-20 * run.c: Deleted, using one in ../common now.David Edelsohn3-93/+1
1996-11-20 * Makefile.in: Delete stuff moved to ../common/Make-common.in.David Edelsohn5-186/+338
(SIM_{OBJS,EXTRA_LIBS,EXTRA_LIBDEPS,EXTRA_ALL,EXTRA_INSTALL}): Define. (SIM_{EXTRA_CLEAN,EXTRA_CFLAGS}): Define. * configure.in: Simplify using macros in ../common/aclocal.m4. Call AC_CHECK_HEADERS(stdlib.h). * configure: Regenerated. * config.in: New file. * func.c (sim_set_callbacks): Delete, moved to * interf.c (sim_set_callbacks): here. (sim_callback): New global. Rewrite all calls to printf_filtered to go through callback. (sim_size,sim_trace): New functions. (sim_{insert,remove}_breakpoint): #if 0 out. * sis.c: #include "config.h". #include <stdlib.h> if present. (main): Coerce fprintf arg to INIT_DISASSEMBLE_INFO to fprintf_ftype. * sis.h: #include "callback.h".
1996-10-02 * Makefile.in (clean): Remove config.log.Jason Molenda2-8/+16
1996-09-14 * Makefile.in (CC_FOR_BUILD): New variable.Ian Lance Taylor1-0/+11
(AR, AR_FLAGS, BISON, MAKEINFO): Remove duplicate variables. (RANLIB, CC): Likewise. (end): Use $(CC_FOR_BUILD), not $(CC). * configure.in: Set CC_FOR_BUILD. * configure: Rebuild.
1996-09-08 * erc32.c (port_init): Disable this for __GO32__ (got no pty'sStu Grossman1-0/+20
there either...).
1996-09-05 * Makefile.in erc32/Makefile.in: Don't set srcroot. This shouldStu Grossman1-22/+17
be inherited from the parent. Remove INSTALL_XFORM and INSTALL_XFORM1. Make INSTALL be set from configure.
1996-07-04 * erc32.c (mec_reset mec_read mec_write memory_read memory_write),Stu Grossman4-1/+1725
sis.h: Get rid of all uses of long long's. * (close_port read_uart write_uart uarta_tx): Don't seg fault when can't open pty's. * exec.c: Add two new instructions: smul, and divscc. * interf.c (flush_windows): New routine to flush the register windows out to the stack just before returning to GDB. Makes backtraces work much better.
1996-06-26 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,Jason Molenda1-1/+2
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values. (docdir, oldincludedir): Removed. * configure.in (AC_PREREQ): autoconf 2.5 or higher. (AC_PROG_INSTALL): Added. * configure: Rebuilt.
1996-06-24 * configure.in: Call AC_PROG_CC before running configure.host.Ian Lance Taylor1-1/+1
* configure: Rebuild with autoconf 2.10.
1996-06-03 * Makefile.in (end.h): Use explicit ./ when running end.Ian Lance Taylor2-3/+15
1996-05-20 Sanitize support for the ESA sparc simulator.Rob Savoye1-0/+52
1996-05-20 New sparc simulator from the ESA.Rob Savoye20-0/+4802