arm semihosting open bug
PATCH 1/1 arm semihosting open bug
The arm semihosting open syscall does not pass the "mode" argument when creating a file. The patch below fixes this.
Paul
Index: arm-semi.c
===================================================================
RCS file: /cvsroot/qemu/qemu/linux-user/arm-semi.c,v retrieving revision 1.2
arm-semi.c +1 -1
@@ -99,7 +99,7 @@ uint32_t do_arm_semihosting(CPUState *enelse return STDOUT_FILENO ; } -return set_swi_errno (ts,open (s, open_modeflags[ARG (1 )])); +return set_swi_errno (ts,open (s, open_modeflags[ARG (1 )],0644 ));case SYS_CLOSE :return set_swi_errno (ts,close (ARG (0 )));case SYS_WRITEC :