diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2016-04-01 16:38:15 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2016-04-01 16:38:15 -0700 |
commit | 0e214bdfd1dd2e963200875bc8f5ea31e5262503 (patch) | |
tree | fb1402ef189c8904cc9f62a65cc9bbcfef26412c /src/arch/sparc/linux/linux.hh | |
parent | 41c358c411a0a1dd555c9da9b01c3ff39937b367 (diff) | |
download | gem5-0e214bdfd1dd2e963200875bc8f5ea31e5262503.tar.xz |
syscall_emul: factor out flag tables into common file
The openFlagTable and mmapFlagTables for emulated Linux
platforms are basically identical, but are specified
repetitively for every platform. Use a common file
that gets included for each platform so that we only
have one copy, making them more consistent and simplifying
changes (like adding #ifdefs).
In the process, made some minor fixes that slipped through
due to previous inconsistencies, and added more #ifdefs
to try to fix building on alternative hosts.
Diffstat (limited to 'src/arch/sparc/linux/linux.hh')
-rw-r--r-- | src/arch/sparc/linux/linux.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/sparc/linux/linux.hh b/src/arch/sparc/linux/linux.hh index d0631f82b..d209dcef0 100644 --- a/src/arch/sparc/linux/linux.hh +++ b/src/arch/sparc/linux/linux.hh @@ -106,11 +106,12 @@ class SparcLinux : public Linux static const int TGT_O_TRUNC = 0x00000400; //!< O_TRUNC static const int TGT_O_EXCL = 0x00000800; //!< O_EXCL static const int TGT_O_NOCTTY = 0x00008000; //!< O_NOCTTY - static const int TGT_O_SYNC = 0x00002000; //!< O_SYNC + static const int TGT_O_DSYNC = 0x00002000; //!< O_DSYNC static const int TGT_O_LARGEFILE = 0x00040000; //!< O_LARGEFILE static const int TGT_O_DIRECT = 0x00100000; //!< O_DIRECT static const int TGT_O_NOATIME = 0x00200000; //!< O_NOATIME static const int TGT_O_CLOEXEC = 0x00400000; //!< O_CLOEXEC + static const int TGT_O_SYNC = 0x00802000; //!< O_SYNC static const int TGT_O_PATH = 0x01000000; //!< O_PATH static const int TGT_O_DIRECTORY = 000200000; //!< O_DIRECTORY |