From: Gabe Black Date: Wed, 18 Mar 2020 06:11:03 +0000 (-0700) Subject: sparc: Add a definition of tgt_stat64 for SPARC64. X-Git-Tag: v20.0.0.0~277 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d78cd637821bfbddf23499f6e1f34afdaec9f812;p=gem5.git sparc: Add a definition of tgt_stat64 for SPARC64. Change-Id: Ided4710d47436fbf8e34be2427dc7ed092a69f56 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26826 Reviewed-by: Gabe Black Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/arch/sparc/linux/linux.hh b/src/arch/sparc/linux/linux.hh index 1d45407ef..89cd207fb 100644 --- a/src/arch/sparc/linux/linux.hh +++ b/src/arch/sparc/linux/linux.hh @@ -38,7 +38,8 @@ class SparcLinux : public Linux static const ByteOrder byteOrder = BigEndianByteOrder; - typedef struct { + struct tgt_stat + { uint32_t st_dev; char __pad1[4]; uint64_t st_ino; @@ -55,7 +56,32 @@ class SparcLinux : public Linux int64_t st_blksize; int64_t st_blocks; uint64_t __unused4[2]; - } tgt_stat; + }; + + struct tgt_stat64 + { + uint64_t st_dev; + uint64_t st_ino; + uint64_t st_nlink; + + uint32_t st_mode; + uint32_t st_uid; + uint32_t st_gid; + uint32_t __pad0; + + uint64_t st_rdev; + int64_t st_size; + int64_t st_blksize; + int64_t st_blocks; + + uint64_t st_atimeX; + uint64_t st_atime_nsec; + uint64_t st_mtimeX; + uint64_t st_mtime_nsec; + uint64_t st_ctimeX; + uint64_t st_ctime_nsec; + int64_t __unused[3]; + }; // SPARC receives weird subsignals for several of its signals. If you // find yourself needing to implement these in detail, look at the