Commit Graph

2903 Commits

Author SHA1 Message Date
Joel Sherrill 00a0b122cf 2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure: Regenerated.
	* configure.ac: Add test for System V shared memory and semaphore.
	* debug.c, debug.h: Add trace support for new devices.
	* hw_sem.c, hw_shm.c: New files.
	* Makefile.in: Add hw_sem.c and hw_shm.c.
2008-11-18 21:30:37 +00:00
Joel Sherrill 6878aceba2 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* aclocal.m4:  Fix underquoting of function names.
2008-11-12 22:05:18 +00:00
Joel Sherrill d68c23cd04 2008-11-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* erc32.c, exec.c: Fix warnings.
2008-11-11 22:20:54 +00:00
Daniel Jacobowitz be091327d3 * Make-common.in (run$(EXEEXT)): Add LDFLAGS. 2008-10-21 19:50:48 +00:00
DJ Delorie bec7fb47e4 * int.c (trigger_peripheral_interrupt): Clear interrupt pending
bit when peripheral interrupts are serviced.
2008-10-01 20:44:21 +00:00
Nick Clifton 086c6838fa * common/genmloop.sh: Add new parameter: -shell to specify the
command interpreter to use to run the input file.  This is
        necessary because otherwise SHELL is taken from the user's
        environment, and not from the makefile that invoked this script
        and the user might not be running an sh-like shell.
        * cris/Makefile.in: Pass -shell parameter to genmloop.sh.
        * fr30/Makefile.in: Likewise.
        * frv/Makefile.in: Likewise.
        * i960/Makefile.in: Likewise.
        * iq2000/Makefile.in: Likewise.
        * m32r/Makefile.in: Likewise.

        * frv/mloop.in: Add missing start of line comment marker.
2008-07-29 13:53:02 +00:00
Hans-Peter Nilsson ecdfd00481 * common.m4: Add test for libz and zlib.h. 2008-07-11 02:42:35 +00:00
Hans-Peter Nilsson b5bd96244f * configure: Regenerate to track ../common/common.m4 changes.
* config.in: Ditto.
2008-07-11 02:41:22 +00:00
Hans-Peter Nilsson 35689115d0 * configure.ac: Add test for libz and zlib.h.
* Makefile.in (LIBS): Set from @LIBS@.
	* configure: Regenerate.
	* config.in: Ditto.
2008-07-11 02:39:11 +00:00
Hans-Peter Nilsson 8929c18caa * cris/configure: Regenerate to track ../common/common.m4 changes.
* cris/config.in: Ditto.
2008-07-11 02:32:33 +00:00
Hans-Peter Nilsson 79e1e45978 * common.m4: Add test for libz and zlib.h.
* configure: Regenerate to track ../common/common.m4 changes.
	* config.in: Ditto.
2008-07-11 02:31:04 +00:00
Hans-Peter Nilsson 35e497c8ac * interp.c (hash): Remove incorrect prototype. 2008-07-11 01:32:00 +00:00
DJ Delorie e7ddc19715 * m32c.opc (BRK, GDBBRK): Remove debug logic.
* main.c (main): Add option to set raw console.
* mem.h (m32c_use_raw_console): Declare.
* mem.c (m32c_sim_restore_console): Only restore console if it's
been previously set.
(m32c_use_raw_console): Define.
(mem_get_byte): Set raw console if m32c_use_raw_console is set.
2008-06-17 00:34:37 +00:00
Michael Snyder 14e1f9573b 2008-06-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* sis.c: Correct spelling error.
2008-06-09 22:55:27 +00:00
Joseph Myers 6efef468be sim:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* cris/configure: Regenerate.

sim/common:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* aclocal.m4: Include ../../config/acx.m4.
	* common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
	* configure, config.in: Regenerate.
	* Make-common.in (LIB_OBJS): Add version.o.
	(version.c, version.o): New rules.
	* run.c: Include version.h.
	(usage): Add help parameter. Print output either to stdout or
	stderr depending on that parameter.
	(print_version): New.
	(main): Check for --help and --version.
	* run-sim.h (sim_target_display_usage): Add help parameter.
	* version.h: New.

sim/arm:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.
	* wrapper.c (sim_target_display_usage): Add help parameter.

sim/cr16:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/d10v:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/erc32:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/frv:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/h8300:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/iq2000:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/m32c:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/m32r:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/m68hc11:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/mcore:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/mips:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/mn10300:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/ppc:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
	* configure, config.in: Regenerated.
	* Makefile.in (LIB_OBJ): Add version.o.
	(version.c, version.o): New rules.
	* psim.c (psim_usage): Add help parameter.  Print the bug URL.
	Exit with code 0 for help.
	(psim_options): Update calls to psim_usage.  Handle --help and
	--version.
	* psim.h (psim_usage): Update prototype.
	* main.c (main): Update psim_usage call.

sim/sh:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/sh64:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.

sim/v850:
2008-06-06  Vladimir Prus  <vladimir@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* configure: Regenerate.
2008-06-07 01:31:27 +00:00
DJ Delorie 7cc70e5388 Oops, missed some warnings.
* mem.h (m32c_sim_restore_console): New.
2008-06-06 19:26:10 +00:00
DJ Delorie 3877a1459b * Makefile.in: Add Timer A support.
* cpu.h (m32c_opcode_pc): New.
(in_gdb): New.
* gdb-if.c (sim_open): Add Timer A support.  Support unbuffered
console.
* int.c (trigger_interrupt): Manage the U flag properly.
(trigger_based_interrupt): Likewise.
(trigger_fixed_interrupt): New.
(trigger_peripheral_interrupt): New.
* int.h (trigger_peripheral_interrupt): New.
* m32c.opc: Use m32c_opcode_pc throughout, as needed.
(decode_m32c): Detect jump-to-zero with traceback.
(BRK): Try to do the right thing, keeping track of whether we're
in gdb or not, and if the user has provided a handler or not.
(GBRK): Alternate break opcode for gdb, in case the user's app
needs to use BRK for itself.
(BRK2): Implement.
* main.c: Add Timer A support.  Support TCP-based console.
(setup_tcp_console): New.
(main): Add Timer A support.  Support TCP-based console.
* mem.c: Add Timer A support.  Support TCP-based console.
(mem_ptr): Enhance NULL pointer detection.
(stdin_ready): New.
(m32c_sim_restore_console): New.
(mem_get_byte): Check for console input ready.
(update_timer_a): New.
* r8c.opc (SSTR): Use r0l, not r0h.
(REIT): Fix return frame logic.
* reg.c (print_flags): New.
(trace_register_changes): Use it.
(m32c_dump_all_registers): New.
* timer_a.h: New.

* load.c: Fix indentation.
* trace.c: Fix indentation.
* trace.h: Fix indentation.
2008-06-06 19:18:15 +00:00
Joel Brobecker 7010a0c901 * ppc/altivec.igen (vperm): Latch inputs into temporaries. 2008-05-09 15:03:09 +00:00
M R Swami Reddy e8db345894 Added 3 miscellaneous testcases like read32.ms uread16.ms hw-trap.ms. 2008-05-05 10:25:20 +00:00
M R Swami Reddy 9c301be69b These files removed. 2008-05-05 10:00:16 +00:00
M R Swami Reddy 20f55b937b Add the change for testcases comment update and new testcases addition. 2008-05-05 09:55:36 +00:00
M R Swami Reddy fae9ec8dca Update testcase comment.
addb.cgs addd.cgs addi.cgs andb.cgs andd.cgs andw.cgs
   ashub.cgs ashub_i.cgs ashud.cgs ashud_i.cgs ashuw.cgs
   ashuw_i.cgs cmpi.cgs cmpw.cgs jlt.cgs jump.cgs loadd.cgs
   loadw.cgs lshb.cgs lshb_i.cgs lshd.cgs lshd_i.cgs lshw.cgs
   lshw_i.cgs movb.cgs movd.cgs movw.cgs movxb.cgs movxw.cgs
   movzb.cgs movzw.cgs mulb.cgs muluw.cgs mulw.cgs orb.cgs
   ord.cgs orw.cgs pop1.cgs pop2.cgs pop3.cgs popret1.cgs
   popret2.cgs popret3.cgs push1.cgs push2.cgs push3.cgs

Added BIT operation testcases:
  cbitb.cgs cbitw.cgs sbitb.cgs sbitw.cgs tbitb.cgs tbit.cgs and tbitw.cgs
2008-05-05 09:52:46 +00:00
M R Swami Reddy ccd2d1c879 Comment change 2008-05-05 09:41:33 +00:00
M R Swami Reddy bff92e6613 Updated the sim engine's ecode logic and commit the code changes 2008-05-05 09:35:16 +00:00
M R Swami Reddy 948b4edeea Update for code standards 2008-05-05 09:33:37 +00:00
M R Swami Reddy 537e4bb9d6 Cleaned up unwanted code and fixed BIT operations simulation. 2008-05-05 09:29:10 +00:00
M R Swami Reddy 8e26b0f4b5 Update simops struct members and PSR bits. 2008-05-05 09:24:26 +00:00
M R Swami Reddy 5da6971689 Fix typo. 2008-05-05 09:21:46 +00:00
M R Swami Reddy 052d9a542f Update the machine code decode algorithm using hash table. 2008-05-05 09:19:42 +00:00
Daniel Jacobowitz a4e64307fa 2008-04-14 Hans Kester <kester.hans@gmail.com>
* sim-signal.c: Define missing signals for _WIN32.
2008-04-14 15:15:18 +00:00
M R Swami Reddy 47fbb84b2e allinsn.exp: Removed target_alias and global_ld_options. 2008-04-08 12:45:37 +00:00
M R Swami Reddy 7c6071482e Modified Files:
ChangeLog:
      Add simulator for National cr16 processor.
        * cr16: New directory with cr16 simulator files.
        * configure.ac: Add an entry for National cr16 target.
        * configure: Regenerate.
2008-04-08 09:26:38 +00:00
M R Swami Reddy fee8ec0052 Added Files:
ChangeLog config.in configure configure.ac cr16_sim.h endian.c
  gencode.c interp.c Makefile.in simops.c: Add these file for CR16 target simulator.
2008-04-08 09:20:06 +00:00
M R Swami Reddy 86b90b55f4 * configure.ac: Add an entry for National CR16 target.
* configure: Regenerate.
2008-04-08 09:15:56 +00:00
M R Swami Reddy 2878ece136 ChangeLog: sim/cr16/: New directory. Added tests for CR16 simulator. 2008-04-08 09:12:27 +00:00
M R Swami Reddy 4ca0c2f6ff ChangeLog: New file 2008-04-08 09:08:29 +00:00
M R Swami Reddy 49b964e718 New files: Testcases for cr16 instruction set. 2008-04-08 09:07:02 +00:00
M R Swami Reddy 51405f8781 testutils.inc: New file: Test macros for cr16 target. 2008-04-08 09:05:01 +00:00
M R Swami Reddy ad6037c642 allinsn.exp misc.exp: New files: Test run scripts 2008-04-08 09:03:17 +00:00
M R Swami Reddy 2a3591b0e0 gennltvals.sh: Add cr16 target sys macros.
nltvals.def: Rebuild.
2008-04-08 08:44:51 +00:00
M R Swami Reddy 84234f6dc5 Updated the MAINTAINERS file: Add myself as maintainer of cr16 port. 2008-04-08 07:20:21 +00:00
M R Swami Reddy efc111662f Add myself as maintainer of cr16 port. 2008-04-08 07:15:39 +00:00
Nick Hudson 29035cbe96 * configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
* configure: Regenerate.
2008-03-14 20:26:49 +00:00
DJ Delorie 98e460c30d * simops.c (OP_1C007E0): Compensate for 64 bit hosts.
(OP_18007E0): Likewise.
(OP_2C007E0): Likewise.
(OP_28007E0): Likewise.
* v850.igen (divh): Likewise.
2008-02-06 04:41:26 +00:00
DJ Delorie c5fbc25baf Index: ChangeLog
* configure.ac (v850): V850 now has a testsuite.
	* configure (v850): Likewise.

Index: testsuite/ChangeLog

	* sim/v850/: New directory.
	* sim/v850/allinsns.exp: New.
	* sim/v850/bsh.cgs: New.
	* sim/v850/div.cgs: New.
	* sim/v850/divh.cgs: New.
	* sim/v850/divh_3.cgs: New.
	* sim/v850/divhu.cgs: New.
	* sim/v850/divu.cgs: New.
	* sim/v850/sar.cgs: New.
	* sim/v850/satadd.cgs: New.
	* sim/v850/satsub.cgs: New.
	* sim/v850/satsubi.cgs: New.
	* sim/v850/satsubr.cgs: New.
	* sim/v850/shl.cgs: New.
	* sim/v850/shr.cgs: New.
	* sim/v850/testutils.cgs: New.
	* sim/v850/testutils.inc: New.

Index: v850/ChangeLog

	* simops.c (OP_C0): Correct saturation logic.
	(OP_220): Likewise.
	(OP_A0): Likewise.
	(OP_660): Likewise.
	(OP_80): Likewise.

	* simops.c (OP_2A0): If the shift count is zero, clear the
	carry.
	(OP_A007E0): Likewise.
	(OP_2C0): Likewise.
	(OP_C007E0): Likewise.
	(OP_280): Likewise.
	(OP_8007E0): Likewise.

	* simops.c (OP_2C207E0): Correct PSW flags for special divu
	conditions.
	(OP_2C007E0): Likewise, for div.
	(OP_28207E0): Likewise, for divhu.
	(OP_28007E0): Likewise, for divh.  Also, sign-extend the correct
	operand.
	* v850.igen (divh): Likewise, for 2-op divh.

	* v850.igen (bsh): Fix carry logic.
2008-02-06 00:40:05 +00:00
Andrew Stubbs f3876f6909 2008-02-04 Antony King <antony.king@st.com>
* interp.c (macl): Fix non-portable implementation.
2008-02-04 17:26:07 +00:00
Daniel Jacobowitz 9b254dd1ce Updated copyright notices for most files. 2008-01-01 22:53:26 +00:00
DJ Delorie beb7a8835e * frv/frv.c (frvbf_cut): Only look at the six LSBs of
cut_point.
2007-12-19 20:55:03 +00:00
Hans-Peter Nilsson bf31154ff3 * sim/cris/asm/x0-v10.ms, sim/cris/asm/x0-v32.ms: Tweak
stack-pointer match pattern for 4K host environment.
2007-11-08 22:12:27 +00:00
Richard Sandiford 60dc88db8b sim/mips/
* mips.igen (check_fmt_p): Provide a separate mips32r2 definition
	that unconditionally allows fmt_ps.
	(ALNV.PS, CEIL.L.fmt, CVT.L.fmt, CVT.PS.S, CVT.S.PL, CVT.S.PU)
	(FLOOR.L.fmt, LWXC1, MADD.fmt, MSUB.fmt, NMADD.fmt, NMSUB.fmt)
	(PLL.PS, PLU.PS, PUL.PS, PUU.PS, ROUND.L.fmt, TRUNC.L.fmt): Change
	filter from 64,f to 32,f.
	(PREFX): Change filter from 64 to 32.
	(LDXC1, LUXC1): Provide separate mips32r2 implementations
	that use do_load_double instead of do_load.  Make both LUXC1
	versions unpredictable if SizeFGR () != 64.
	(SDXC1, SUXC1): Extend to mips32r2, using do_store_double
	instead of do_store.  Remove unused variable.  Make both SUXC1
	versions unpredictable if SizeFGR () != 64.
2007-10-22 20:02:25 +00:00