diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-02-27 09:26:17 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-02-27 09:26:17 -0800 |
commit | 2fe87e62ba2bf51dfc773dd6fdb2bd1fdb09e20b (patch) | |
tree | a8155874e740d043de1088f9f794c88ee3baadad | |
parent | 27b751ec46e59166867cedbf6da3ee19453671bd (diff) | |
download | gem5-2fe87e62ba2bf51dfc773dd6fdb2bd1fdb09e20b.tar.xz |
X86: Add a structure to allow mapping between the host and guest fstat formats.
-rw-r--r-- | src/arch/x86/linux/linux.hh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/arch/x86/linux/linux.hh b/src/arch/x86/linux/linux.hh index c6fe28318..c2941c769 100644 --- a/src/arch/x86/linux/linux.hh +++ b/src/arch/x86/linux/linux.hh @@ -117,6 +117,28 @@ class X86Linux32 : public Linux { public: + typedef struct { + uint64_t st_dev; + uint8_t __pad0[4]; + uint32_t __st_ino; + uint32_t st_mode; + uint32_t st_nlink; + uint32_t st_uid; + uint32_t st_gid; + uint64_t st_rdev; + int64_t st_size; + uint8_t __pad3[4]; + uint32_t st_blksize; + uint64_t st_blocks; + uint32_t st_atimeX; + uint32_t st_atime_nsec; + uint32_t st_mtimeX; + uint32_t st_mtime_nsec; + uint32_t st_ctimeX; + uint32_t st_ctime_nsec; + uint64_t st_ino; + } tgt_stat64; + static OpenFlagTransTable openFlagTable[]; static const int TGT_O_RDONLY = 00000000; //!< O_RDONLY |