diff options
Diffstat (limited to 'linux-user/arm-semi.c')
-rw-r--r-- | linux-user/arm-semi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/arm-semi.c b/linux-user/arm-semi.c index ea014f6bc7..6950daaa66 100644 --- a/linux-user/arm-semi.c +++ b/linux-user/arm-semi.c @@ -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: |