aboutsummaryrefslogtreecommitdiff
path: root/sim
AgeCommit message (Collapse)AuthorFilesLines
2008-12-30 * sim/cris/asm/badarch1.ms: Tweak error message match.Hans-Peter Nilsson2-1/+3
2008-12-30 * cris/sim-if.c (sim_open): If sim_analyze_program fails, emitHans-Peter Nilsson2-7/+9
just a short CRIS-specific notice. Tweak the wording for a failing architecture test.
2008-12-30 * sim/cris/asm/badarch1.ms, sim/cris/c/badldso1.c,Hans-Peter Nilsson11-0/+145
sim/cris/c/badldso2.c, sim/cris/c/badldso3.c, sim/cris/c/helloaout.c, sim/cris/c/hellodyn.c, sim/cris/c/hellodyn2.c, sim/cris/c/writev1.c, sim/cris/c/writev2.c: New tests. * sim/cris/c/c.exp: If compiler links libc.so when attempting to link dynamically, create symlink named "lib" to the directory where it is found. Handle new test-case option "dynamic".
2008-12-30 * cris/traps.c (TARGET_SYS_writev): New macro.Hans-Peter Nilsson2-19/+185
(is_mapped_only, cris_dump_map): New functions. (cris_break_13_handler) <case TARGET_SYS_mmap2>: Handle more flags and prot combinations and a non-zero page-offset. If TARGET_MAP_FIXED, unmap pages before mapping them. <case TARGET_SYS_mprotect>: When checking, allow any length argument. Don't actually do anything. <case TARGET_SYS_writev>: New case.
2008-12-30 * cris/Makefile.in (SIM_OBJS): Remove sim-hload.o.Hans-Peter Nilsson3-44/+471
* cris/sim-if.c: Include elf-bfd.h. (struct progbounds): New members end_loadmem, start_nonloadmem. (xprintf, eprintf): New functions, copied from common/sim-load.c. (cris_load_elf_file, sim_load, cris_get_progbounds): New functions. (get_progbounds_iterator): Renamed from get_progbounds. Make static. Update head comment. Set new struct progbounds members. (exec_load_addr, interp_load_addr, interp_start_addr): New static variables. (aux_ent_phdr, aux_ent_phent, aux_ent_phnum, aux_ent_base) (aux_ent_entry, cris_write_interp, cris_handle_interpreter): New functions. (sim_open): New constant array auxv_entries. Rewrite AUX_ENT handling to use auxv_entries. Improve error message and checking for invalid programs. Use new variable abfd for the program instead of for each access reaching into sd to get it. (sim_create_inferior): If non-zero, use interp_start_addr instead of the program start address. (cris_disassemble_insn): Remove incorrect and unclear, supposedly stale comment. Always specify little-endian.
2008-12-30 * sim/cris/asm/opterr1.ms, sim/cris/asm/opterr2.ms: Adjust forHans-Peter Nilsson3-2/+7
differences in getopt_long error message quoting.
2008-12-23 * arch.c, arch.h, cpu.c, cpu.h, cpuall.h, decode.c, decode.h,Hans-Peter Nilsson10-149/+163
model.c, sem.c: Regenerate.
2008-12-152008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill3-0/+15
* ppc-instructions, ppc-spr-table: Add ability to read tbrl and tbru special registers.
2008-12-012008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-2/+6
* compile.c: Add const to remove warning.
2008-11-262008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill3-0/+8
* arminit.c, iwmmxt.c: Include <string.h> to eliminate warning.
2008-11-182008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill8-7/+894
* 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-122008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-21/+25
* aclocal.m4: Fix underquoting of function names.
2008-11-112008-11-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill3-4/+9
* erc32.c, exec.c: Fix warnings.
2008-10-21 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.Daniel Jacobowitz2-1/+5
2008-10-01* int.c (trigger_peripheral_interrupt): Clear interrupt pendingDJ Delorie2-0/+6
bit when peripheral interrupts are serviced.
2008-07-29 * common/genmloop.sh: Add new parameter: -shell to specify theNick Clifton7-8/+29
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-11 * common.m4: Add test for libz and zlib.h.Hans-Peter Nilsson1-0/+4
2008-07-11 * configure: Regenerate to track ../common/common.m4 changes.Hans-Peter Nilsson48-123/+4819
* config.in: Ditto.
2008-07-11 * configure.ac: Add test for libz and zlib.h.Hans-Peter Nilsson5-15/+308
* Makefile.in (LIBS): Set from @LIBS@. * configure: Regenerate. * config.in: Ditto.
2008-07-11 * cris/configure: Regenerate to track ../common/common.m4 changes.Hans-Peter Nilsson3-0/+292
* cris/config.in: Ditto.
2008-07-11 * common.m4: Add test for libz and zlib.h.Hans-Peter Nilsson3-0/+287
* configure: Regenerate to track ../common/common.m4 changes. * config.in: Ditto.
2008-07-11 * interp.c (hash): Remove incorrect prototype.Hans-Peter Nilsson2-1/+4
2008-06-17* m32c.opc (BRK, GDBBRK): Remove debug logic.DJ Delorie5-8/+24
* 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-092008-06-09 Joel Sherrill <joel.sherrill@oarcorp.com>Michael Snyder2-1/+5
* sis.c: Correct spelling error.
2008-06-07sim:Joseph Myers52-52/+3348
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-06Oops, missed some warnings.DJ Delorie5-1/+9
* mem.h (m32c_sim_restore_console): New.
2008-06-06* Makefile.in: Add Timer A support.DJ Delorie18-67/+519
* 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-05-09 * ppc/altivec.igen (vperm): Latch inputs into temporaries.Joel Brobecker2-2/+11
2008-05-05Added 3 miscellaneous testcases like read32.ms uread16.ms hw-trap.ms.M R Swami Reddy3-0/+44
2008-05-05These files removed.M R Swami Reddy3-131/+0
2008-05-05Add the change for testcases comment update and new testcases addition.M R Swami Reddy1-0/+14
2008-05-05Update testcase comment.M R Swami Reddy53-60/+315
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-05Comment changeM R Swami Reddy1-2/+2
2008-05-05Updated the sim engine's ecode logic and commit the code changesM R Swami Reddy1-0/+6
2008-05-05Update for code standardsM R Swami Reddy1-70/+62
2008-05-05Cleaned up unwanted code and fixed BIT operations simulation.M R Swami Reddy1-66/+14
2008-05-05Update simops struct members and PSR bits.M R Swami Reddy1-11/+12
2008-05-05Fix typo.M R Swami Reddy1-3/+3
2008-05-05 Update the machine code decode algorithm using hash table.M R Swami Reddy1-456/+584
2008-04-142008-04-14 Hans Kester <kester.hans@gmail.com>Daniel Jacobowitz2-1/+5
* sim-signal.c: Define missing signals for _WIN32.
2008-04-08 allinsn.exp: Removed target_alias and global_ld_options.M R Swami Reddy2-2/+4
2008-04-08Modified Files:M R Swami Reddy1-0/+7
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-08Added Files:M R Swami Reddy10-0/+14538
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 * configure.ac: Add an entry for National CR16 target.M R Swami Reddy2-0/+12
* configure: Regenerate.
2008-04-08 ChangeLog: sim/cr16/: New directory. Added tests for CR16 simulator.M R Swami Reddy1-0/+43
2008-04-08 ChangeLog: New fileM R Swami Reddy1-0/+23
2008-04-08 New files: Testcases for cr16 instruction set.M R Swami Reddy123-0/+2714
2008-04-08 testutils.inc: New file: Test macros for cr16 target.M R Swami Reddy1-0/+72
2008-04-08 allinsn.exp misc.exp: New files: Test run scriptsM R Swami Reddy2-0/+45
2008-04-08 gennltvals.sh: Add cr16 target sys macros.M R Swami Reddy3-0/+45
nltvals.def: Rebuild.