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/alpha | |
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/alpha')
-rw-r--r-- | src/arch/alpha/linux/linux.cc | 2 | ||||
-rw-r--r-- | src/arch/alpha/linux/linux.hh | 2 | ||||
-rw-r--r-- | src/arch/alpha/tru64/tru64.cc | 2 | ||||
-rw-r--r-- | src/arch/alpha/tru64/tru64.hh | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/alpha/linux/linux.cc b/src/arch/alpha/linux/linux.cc index ad8388096..6641b3b60 100644 --- a/src/arch/alpha/linux/linux.cc +++ b/src/arch/alpha/linux/linux.cc @@ -33,7 +33,7 @@ #include "arch/alpha/linux/linux.hh" // open(2) flags translation table -OpenFlagTransTable AlphaLinux::openFlagTable[] = { +SyscallFlagTransTable AlphaLinux::openFlagTable[] = { #ifdef _MSC_VER { AlphaLinux::TGT_O_RDONLY, _O_RDONLY }, { AlphaLinux::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/alpha/linux/linux.hh b/src/arch/alpha/linux/linux.hh index f019b4f21..37508c65b 100644 --- a/src/arch/alpha/linux/linux.hh +++ b/src/arch/alpha/linux/linux.hh @@ -43,7 +43,7 @@ class AlphaLinux : public Linux /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; diff --git a/src/arch/alpha/tru64/tru64.cc b/src/arch/alpha/tru64/tru64.cc index c72e975f0..1854a02f1 100644 --- a/src/arch/alpha/tru64/tru64.cc +++ b/src/arch/alpha/tru64/tru64.cc @@ -31,7 +31,7 @@ #include "arch/alpha/tru64/tru64.hh" // open(2) flags translation table -OpenFlagTransTable AlphaTru64::openFlagTable[] = { +SyscallFlagTransTable AlphaTru64::openFlagTable[] = { #ifdef _MSC_VER { AlphaTru64::TGT_O_RDONLY, _O_RDONLY }, { AlphaTru64::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/alpha/tru64/tru64.hh b/src/arch/alpha/tru64/tru64.hh index 5751da8d4..92d6db842 100644 --- a/src/arch/alpha/tru64/tru64.hh +++ b/src/arch/alpha/tru64/tru64.hh @@ -38,7 +38,7 @@ class AlphaTru64 : public Tru64 public: /// This table maps the target open() flags to the corresponding /// host open() flags. - static OpenFlagTransTable openFlagTable[]; + static SyscallFlagTransTable openFlagTable[]; /// Number of entries in openFlagTable[]. static const int NUM_OPEN_FLAGS; |