aboutsummaryrefslogtreecommitdiff
path: root/sim/cris/traps.c
AgeCommit message (Collapse)AuthorFilesLines
2010-01-01Update copyright notices to add year 2010.Joel Brobecker1-1/+2
2009-01-14 Update the copyright notice of some of the files I missedJoel Brobecker1-1/+1
in the previous copyright update.
2009-01-06 * cris/traps.c (abort): Define to call sim_io_error.Hans-Peter Nilsson1-24/+51
(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-03 * cris/sim-main.h (struct _sim_cpu): New memberHans-Peter Nilsson1-0/+12
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.
2009-01-03 * cris/traps.c (TARGET_SYS_exit_group): Define.Hans-Peter Nilsson1-1/+3
(cris_break_13_handler): Handle it like the exit for the last thread.
2009-01-03 * cris/traps.c (TARGET_UTSNAME): Update to 2009-01-01.Hans-Peter Nilsson1-6/+14
(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.
2009-01-03 * cris/traps.c (TARGET_MAP_DENYWRITE): Define.Hans-Peter Nilsson1-0/+6
<case TARGET_SYS_mmap2>: Handle TARGET_MAP_DENYWRITE.
2009-01-03 * cris/traps.c (TARGET_SYS_access, TARGET_R_OK, TARGET_W_OK)Hans-Peter Nilsson1-0/+57
(TARGET_X_OK, TARGET_F_OK): Define. (cris_break_13_handler) <case TARGET_SYS_access>: New case.
2008-12-30 * cris/traps.c (TARGET_SYS_writev): New macro.Hans-Peter Nilsson1-19/+176
(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-01-01 Updated copyright notices for most files.Daniel Jacobowitz1-1/+1
2007-08-24 Switch the license of all files explicitly copyright the FSFJoel Brobecker1-5/+4
to GPLv3.
2007-02-20 * cris/traps.c (dump_statistics): Change format for cycle numbersHans-Peter Nilsson1-19/+19
to %llu and cast parameters to unsigned long long.
2007-01-09Copyright updates for 2007.Daniel Jacobowitz1-1/+1
2006-10-02 * cris/cris-sim.h (enum cris_unknown_syscall_action_type)Hans-Peter Nilsson1-109/+152
(cris_unknown_syscall_action): Declare. * cris/sim-if.c (cris_unknown_syscall_action): Define. (cris_options): Add cris-unknown-syscall option. (cris_option_handler): Correct comment about and error message for invalid --cris-cycles argument. Handle --cris-unknown-syscall. * cris/traps.c: Include stdarg.h (cris_unknown_syscall): New function. (cris_break_13_handler): Instead of sim_io_eprintf and sim_engine_halt, call cris_unknown_syscall to handle more or less unknown syscalls. Adjust code as necessary to handle return value.
2006-09-30 * cris/traps.c (TARGET_PIPE_BUF): New macro.Hans-Peter Nilsson1-13/+24
(cris_pipe_empty): Correct initialization of "remaining". Only adjust the "write" return value if more than TARGET_PIPE_BUF bytes are written.
2006-09-29 * cris/configure.ac: Check for limits.h and sys/param.h.Hans-Peter Nilsson1-9/+24
* cris/configure, cris/config.in: Rebuild. * cris/traps.c (SIM_PATHMAX): New macro. (cris_break_13_handler): Use SIM_PATHMAX, not MAXPATHLEN.
2006-02-23 * cris/traps.c (syscall_map): Remove CB_SYS_time / TARGET_SYS_timeHans-Peter Nilsson1-1/+11
mapping. (cris_break_13_handler) <case TARGET_SYS_time>: New case.
2005-11-20 cris/traps.c (TARGET_O_RDONLY, TARGET_O_WRONLY): Define.Hans-Peter Nilsson1-6/+25
(open_map): Use TARGET_O_ACCMODE, TARGET_O_RDONLY and TARGET_O_WRONLY. (cris_break_13_handler) <case TARGET_SYS_fcntl>: Add support for F_GETFL on fd 0, 1 and 2.
2005-11-17 * cris/sim-main.h (struct _sim_cpu): New members last_syscall,Hans-Peter Nilsson1-5/+41
last_open_fd, last_open_flags. * cris/traps.c: Don't include targ-vals.h. (TARGET_O_ACCMODE): Define. (cris_break_13_handler): Set new _sim_cpu members. <case TARGET_SYS_fcntl>: Support special case of F_GETFL. Rearrange code as switch. Emit "unimplemented" abort for unimplemented fcntl calls.
2005-11-17 * cris/traps.c (TARGET_SYS_stat): Define.Hans-Peter Nilsson1-0/+3
(syscall_stat32_map): Add entry for TARGET_SYS_stat. (cris_break_13_handler) <case TARGET_SYS_stat>: New case.
2005-04-18 * cris/traps.c (cris_break_13_handler) <case TARGET_SYS_mmap2>:Hans-Peter Nilsson1-3/+3
For ((len & 8191) != 0 && fd == (USI) -1), don't say this isn't implemented. In call to create_map, pad length argument to 8k.
2005-03-24 * cris/traps.c (cris_break_13_handler) <caseHans-Peter Nilsson1-12/+13
TARGET_SYS_rt_sigaction>: Rename sa_handler, sa_flags, sa_restorer, sa_mask_low, sa_mask_high to target_sa_handler etc.
2005-01-28 * cris: New directory, simulator for Axis Communications CRISHans-Peter Nilsson1-0/+2982
including CRIS v32, CGEN-based. * configure.ac: Add corresponding configury. * configure: Regenerate.