diff options
author | Brandon Potter <brandon.potter@amd.com> | 2016-03-17 10:22:39 -0700 |
---|---|---|
committer | Brandon Potter <brandon.potter@amd.com> | 2016-03-17 10:22:39 -0700 |
commit | b8688346a51860c7d582cf3fe310895e93a0ab6c (patch) | |
tree | 80d22e131e63a687a1b16129ba1e87994f04a0e2 /src/arch/sparc | |
parent | 75d691060742d59894c147ad1abde4c6c9803346 (diff) | |
download | gem5-b8688346a51860c7d582cf3fe310895e93a0ab6c.tar.xz |
syscall_emul: rename OpenFlagTransTable struct
The structure definition only had the open system call flag set in mind when
it was named, so we rename it here with the intention of using it to define
additional tables to translate flags for other system calls in the future.
Diffstat (limited to 'src/arch/sparc')
-rw-r--r-- | src/arch/sparc/linux/linux.cc | 2 | ||||
-rw-r--r-- | src/arch/sparc/linux/linux.hh | 2 | ||||
-rw-r--r-- | src/arch/sparc/solaris/solaris.cc | 2 | ||||
-rw-r--r-- | src/arch/sparc/solaris/solaris.hh | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/sparc/linux/linux.cc b/src/arch/sparc/linux/linux.cc index 6f8a05750..f3c9c565c 100644 --- a/src/arch/sparc/linux/linux.cc +++ b/src/arch/sparc/linux/linux.cc @@ -33,7 +33,7 @@ #include "arch/sparc/linux/linux.hh" // open(2) flags translation table -OpenFlagTransTable SparcLinux::openFlagTable[] = { +SyscallFlagTransTable SparcLinux::openFlagTable[] = { #ifdef _MSC_VER { SparcLinux::TGT_O_RDONLY, _O_RDONLY }, { SparcLinux::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/sparc/linux/linux.hh b/src/arch/sparc/linux/linux.hh index bbedc92b1..b48dc7c6d 100644 --- a/src/arch/sparc/linux/linux.hh +++ b/src/arch/sparc/linux/linux.hh @@ -56,7 +56,7 @@ class SparcLinux : public Linux uint64_t __unused4[2]; } tgt_stat; - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; static const int TGT_O_RDONLY = 0x00000000; //!< O_RDONLY static const int TGT_O_WRONLY = 0x00000001; //!< O_WRONLY diff --git a/src/arch/sparc/solaris/solaris.cc b/src/arch/sparc/solaris/solaris.cc index 5474d8b17..e17de3af0 100644 --- a/src/arch/sparc/solaris/solaris.cc +++ b/src/arch/sparc/solaris/solaris.cc @@ -33,7 +33,7 @@ #include "arch/sparc/solaris/solaris.hh" // open(2) flags translation table -OpenFlagTransTable SparcSolaris::openFlagTable[] = { +SyscallFlagTransTable SparcSolaris::openFlagTable[] = { #ifdef _MSC_VER { SparcSolaris::TGT_O_RDONLY, _O_RDONLY }, { SparcSolaris::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/sparc/solaris/solaris.hh b/src/arch/sparc/solaris/solaris.hh index 8222addab..9827b6b50 100644 --- a/src/arch/sparc/solaris/solaris.hh +++ b/src/arch/sparc/solaris/solaris.hh @@ -37,7 +37,7 @@ class SparcSolaris : public Solaris { public: - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; static const int TGT_O_RDONLY = 0x00000000; //!< O_RDONLY static const int TGT_O_WRONLY = 0x00000001; //!< O_WRONLY |