Committed: cris/traps.c: Support 32-bit stat syscall.
Supporting (32-bit) stat is necessary to run the stat test-cases
on cris-axis-elf, whereas glibc only uses stat64. (I've
rearranged the C tests a bit before submitting, so at least
*some* are runnable without glibc.)
* 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.
@@ -2324,6 +2354,7 @@ cris_break_13_handler (SIM_CPU *current_
/* 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:
/* As long as the infrastructure doesn't cache anything