open fix (Paul Brook)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1430 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2005-05-13 22:42:37 +00:00
parent 2d5262f991
commit 04d81be884
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ uint32_t do_arm_semihosting(CPUState *env)
else
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: