summaryrefslogtreecommitdiffstats
path: root/sim
Commit message (Collapse)AuthorAgeFilesLines
* * sim/cris/asm/opterr5.ms, sim/cris/asm/opterr4.ms,Hans-Peter Nilsson2009-01-186-1/+74
| | | | | sim/cris/asm/opterr3.ms, sim/cris/asm/bare3.ms: New tests. * lib/sim-defs.exp (run_sim_test): New option progopts.
* * cris/sim-if.c: Include errno.h.Hans-Peter Nilsson2009-01-182-5/+142
| | | | | | | | | | | | | | | | | | | (cris_start_address, cris_program_offset): New variables. (OPTION_CRIS_PROGRAM_OFFSET, OPTION_CRIS_STARTADDR): New option enums. (cris_options): New options --cris-program-offset and --cris-start-address. (cris_option_handler): Handle new options. (cris_program_offset_write, cris_set_section_offset_iterator) (cris_offset_sections, cris_offset_sections): New functions. (sim_load): Use cris_program_offset_write as function argument to cris_load_elf_file, not sim_write. (struct offsetinfo): New struct. (cris_handle_interpreter): Fix typo in comment. (sim_open): Call cris_offset_sections as soon as the bfd of the infile is available. Gate bfd validity checks on abfd non-NULL. (sim_create_inferior): Let cris_start_address when != -1 override other start-address choices.
* Update the copyright notice of some of the files I missedJoel Brobecker2009-01-14300-305/+339
| | | | in the previous copyright update.
* * ppc-instructions (sync): Add L field.Nathan Froyd2009-01-122-1/+5
|
* * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)Hans-Peter Nilsson2009-01-071-1/+1
| | | | | | | (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI) (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type variant; UQI, UHI, USI, UDI, and cast the result to the signed type, QI, HI, SI, DI.
* * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)Hans-Peter Nilsson2009-01-072-20/+26
| | | | | | | (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI) (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type variant; UQI, UHI, USI, UDI, and cast the result to the signed type, QI, HI, SI, DI.
* * sem.c: Regenerate.Hans-Peter Nilsson2009-01-072-54/+58
|
* * callback.c (os_error): Mark as being a noreturn function.Hans-Peter Nilsson2009-01-063-2/+13
| | | | * sim-io.h (sim_io_error): Similar for sim_io_error.
* * sim/cris/c/mmap5.c, sim/cris/c/mmap6.c, sim/cris/c/mmap7.c,Hans-Peter Nilsson2009-01-066-0/+136
| | | | sim/cris/c/mmap8.c, sim/cris/c/hellodyn3.c: New tests.
* * cris/traps.c (abort): Define to call sim_io_error.Hans-Peter Nilsson2009-01-062-24/+68
| | | | | | | | | | | | | | | | (create_map): Make -1 imply a non-fixed address, not 0. All callers changed. Only prefer the next higher unmapped address if the last mapped address is no less than 0x40000000. Check that the address to be mapped is not already mapped. Update head comment. (unmap_pages): Don't call abort when recursive call fails, just note and return an error if a page in the range couldn't be unmapped. (cris_bmod_handler, h_supr_set_handler, h_supr_get_handler) (schedule, make_first_thread, cris_pipe_empty): New local variable sd. (cris_break_13_handler) <case TARGET_SYS_mmap2>: Handle non-MAP_FIXED argument overlapping existing map. For MAP_FIXED, don't abort on page not being mapped. Handle non-anon filemap with length padded to pagesize.
* 2009-01-06 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-01-063-4/+8
| | | | * r8c.opc, m32c.opc: Add parentheses to remove warnings.
* * cris/sim-if.c (TARGET_AT_NULL, TARGET_AT_PHDR, TARGET_AT_PHENT)Hans-Peter Nilsson2009-01-032-23/+18
| | | | | | | | | | | (TARGET_AT_PHNUM, TARGET_AT_PAGESZ, TARGET_AT_BASE) (TARGET_AT_FLAGS, TARGET_AT_ENTRY, TARGET_AT_UID, TARGET_AT_EUID) (TARGET_AT_GID, TARGET_AT_EGID, TARGET_AT_HWCAP) (TARGET_AT_CLKTCK): Remove redundant macros. (AUX_ENT): Adjust to use standard ELF AT_* macros. (AUX_ENTF): Ditto. Remove always-0 middle argument. Update all callers. (sim_open): Also pass AT_SECURE.
* * sim/cris/c/settls1.c: New test.Hans-Peter Nilsson2009-01-032-0/+50
|
* * cris/sim-main.h (struct _sim_cpu): New memberHans-Peter Nilsson2009-01-036-0/+36
| | | | | | | | | | | set_target_thread_data. * cris/crisv32f.c (CRIS_TLS_REGISTER): Define. * cris/crisv10f.c: Ditto. * cris/cris-tmpl.c (MY (set_target_thread_data)): New function. (MY (f_specific_init)): Set new _sim_cpu member to new function. * cris/traps.c (TARGET_SYS_set_thread_area): Define. (cris_break_13_handler) <case TARGET_SYS_set_thread_area>: New case.
* * sim/cris/c/exitg1.c, sim/cris/c/exitg2.c: New tests.Hans-Peter Nilsson2009-01-033-0/+28
|
* * cris/traps.c (TARGET_SYS_exit_group): Define.Hans-Peter Nilsson2009-01-032-1/+7
| | | | | (cris_break_13_handler): Handle it like the exit for the last thread.
* * sim/cris/c/uname1.c: New test.Hans-Peter Nilsson2009-01-032-0/+22
|
* * cris/traps.c (TARGET_UTSNAME): Update to 2009-01-01.Hans-Peter Nilsson2009-01-032-7/+22
| | | | | | | (TARGET_EPOCH): Update to match TARGET_UTSNAME. Correct comment. (cris_break_13_handler) <case TARGET_SYS_uname>: Update to 2.6.27. Set machine field to the BFD printable name of the machine.
* * sim/cris/c/mmap1.c (MMAP_FLAGS): Default-define toHans-Peter Nilsson2009-01-033-1/+13
| | | | | MAP_PRIVATE and use this macro in the mmap call. * sim/cris/c/mmap4.c: New test.
* * cris/traps.c (TARGET_MAP_DENYWRITE): Define.Hans-Peter Nilsson2009-01-032-0/+9
| | | | <case TARGET_SYS_mmap2>: Handle TARGET_MAP_DENYWRITE.
* * sim/cris/c/access1.c: New test.Hans-Peter Nilsson2009-01-032-0/+17
|
* * cris/traps.c (TARGET_SYS_access, TARGET_R_OK, TARGET_W_OK)Hans-Peter Nilsson2009-01-032-0/+61
| | | | | (TARGET_X_OK, TARGET_F_OK): Define. (cris_break_13_handler) <case TARGET_SYS_access>: New case.
* * sim/cris/asm/pid1.ms: New test.Hans-Peter Nilsson2009-01-032-0/+49
|
* * cris/semcrisv32f-switch.c: Regenerate.Hans-Peter Nilsson2009-01-032-17/+17
|
* * sim/cris/asm/badarch1.ms: Tweak error message match.Hans-Peter Nilsson2008-12-302-1/+3
|
* * cris/sim-if.c (sim_open): If sim_analyze_program fails, emitHans-Peter Nilsson2008-12-302-7/+9
| | | | | just a short CRIS-specific notice. Tweak the wording for a failing architecture test.
* * sim/cris/asm/badarch1.ms, sim/cris/c/badldso1.c,Hans-Peter Nilsson2008-12-3011-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".
* * cris/traps.c (TARGET_SYS_writev): New macro.Hans-Peter Nilsson2008-12-302-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.
* * cris/Makefile.in (SIM_OBJS): Remove sim-hload.o.Hans-Peter Nilsson2008-12-303-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.
* * sim/cris/asm/opterr1.ms, sim/cris/asm/opterr2.ms: Adjust forHans-Peter Nilsson2008-12-303-2/+7
| | | | differences in getopt_long error message quoting.
* * arch.c, arch.h, cpu.c, cpu.h, cpuall.h, decode.c, decode.h,Hans-Peter Nilsson2008-12-2310-149/+163
| | | | model.c, sem.c: Regenerate.
* 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-12-153-0/+15
| | | | | * ppc-instructions, ppc-spr-table: Add ability to read tbrl and tbru special registers.
* 2008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-12-012-2/+6
| | | | * compile.c: Add const to remove warning.
* 2008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-11-263-0/+8
| | | | | * arminit.c, iwmmxt.c: Include <string.h> to eliminate warning.
* 2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-11-188-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-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-11-122-21/+25
| | | | * aclocal.m4: Fix underquoting of function names.
* 2008-11-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-11-113-4/+9
| | | | * erc32.c, exec.c: Fix warnings.
* * Make-common.in (run$(EXEEXT)): Add LDFLAGS.Daniel Jacobowitz2008-10-212-1/+5
|
* * int.c (trigger_peripheral_interrupt): Clear interrupt pendingDJ Delorie2008-10-012-0/+6
| | | | bit when peripheral interrupts are serviced.
* * common/genmloop.sh: Add new parameter: -shell to specify theNick Clifton2008-07-297-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.
* * common.m4: Add test for libz and zlib.h.Hans-Peter Nilsson2008-07-111-0/+4
|
* * configure: Regenerate to track ../common/common.m4 changes.Hans-Peter Nilsson2008-07-1148-123/+4819
| | | | * config.in: Ditto.
* * configure.ac: Add test for libz and zlib.h.Hans-Peter Nilsson2008-07-115-15/+308
| | | | | | * Makefile.in (LIBS): Set from @LIBS@. * configure: Regenerate. * config.in: Ditto.
* * cris/configure: Regenerate to track ../common/common.m4 changes.Hans-Peter Nilsson2008-07-113-0/+292
| | | | * cris/config.in: Ditto.
* * common.m4: Add test for libz and zlib.h.Hans-Peter Nilsson2008-07-113-0/+287
| | | | | * configure: Regenerate to track ../common/common.m4 changes. * config.in: Ditto.
* * interp.c (hash): Remove incorrect prototype.Hans-Peter Nilsson2008-07-112-1/+4
|
* * m32c.opc (BRK, GDBBRK): Remove debug logic.DJ Delorie2008-06-175-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-09 Joel Sherrill <joel.sherrill@oarcorp.com>Michael Snyder2008-06-092-1/+5
| | | | * sis.c: Correct spelling error.
* sim:Joseph Myers2008-06-0752-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.
* Oops, missed some warnings.DJ Delorie2008-06-065-1/+9
| | | | * mem.h (m32c_sim_restore_console): New.
OpenPOWER on IntegriCloud