aboutsummaryrefslogtreecommitdiff
path: root/sim/cris/traps.c
AgeCommit message (Collapse)AuthorFilesLines
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.