sparc: Add a definition of tgt_stat64 for SPARC64.
authorGabe Black <gabeblack@google.com>
Wed, 18 Mar 2020 06:11:03 +0000 (23:11 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 24 Mar 2020 01:00:22 +0000 (01:00 +0000)
Change-Id: Ided4710d47436fbf8e34be2427dc7ed092a69f56
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26826
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/sparc/linux/linux.hh

index 1d45407ef5dbdd0df414870afdc4ed4d9e7887d4..89cd207fb4272d0a4eed29ddc8dcab279dae7bbc 100644 (file)
@@ -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