Skip to content

Commit

Permalink
ARCv3: Change stat to fstat call.
Browse files Browse the repository at this point in the history
Modified the fstat call from stat to fstat
accordingly to semi-hosting syscall for ARCv3.

Signed-off-by: Luis Silva <luis.m.silva99@hotmail.com>
  • Loading branch information
luismgsilva authored and claziss committed Jul 12, 2023
1 parent ae07e69 commit 2921a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgloss/arc64/nsim-syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ _fstat (int fd, struct stat *buf)
{
struct nsim_stat nsim_stat;
long __res;
_naked_syscall2 (__res, stat, fd, &nsim_stat)
_naked_syscall2 (__res, fstat, fd, &nsim_stat)
translate_stat (&nsim_stat, buf);
return __res;
}
Expand Down

0 comments on commit 2921a0d

Please sign in to comment.