+2005-11-17 Hans-Peter Nilsson <hp@axis.com>
+
+ * cris/traps.c (TARGET_SYS_stat): Define.
+ (syscall_stat32_map): Add entry for TARGET_SYS_stat.
+ (cris_break_13_handler) <case TARGET_SYS_stat>: New case.
+
2005-11-16 Hans-Peter Nilsson <hp@axis.com>
* cris/cris-tmpl.c (MY (f_model_insn_before)): Make sure only the
#define TARGET_SYS_truncate 92
#define TARGET_SYS_ftruncate 93
#define TARGET_SYS_socketcall 102
+#define TARGET_SYS_stat 106
#define TARGET_SYS_fstat 108
#define TARGET_SYS_wait4 114
#define TARGET_SYS_sigreturn 119
static const CB_TARGET_DEFS_MAP syscall_stat32_map[] =
{
{ CB_SYS_fstat, TARGET_SYS_fstat },
+ { CB_SYS_stat, TARGET_SYS_stat },
{ 0, -1 }
};
/* Add case labels here for other syscalls using the 32-bit
"struct stat", provided they have a corresponding simulator
function of course. */
+ case TARGET_SYS_stat:
case TARGET_SYS_fstat:
{
/* As long as the infrastructure doesn't cache anything