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/mips/linux | |
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/mips/linux')
-rw-r--r-- | src/arch/mips/linux/linux.cc | 2 | ||||
-rw-r--r-- | src/arch/mips/linux/linux.hh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/mips/linux/linux.cc b/src/arch/mips/linux/linux.cc index 8c4e3bf8c..ce1d7664a 100644 --- a/src/arch/mips/linux/linux.cc +++ b/src/arch/mips/linux/linux.cc @@ -33,7 +33,7 @@ #include "arch/mips/linux/linux.hh" // open(2) flags translation table -OpenFlagTransTable MipsLinux::openFlagTable[] = { +SyscallFlagTransTable MipsLinux::openFlagTable[] = { #ifdef _MSC_VER { MipsLinux::TGT_O_RDONLY, _O_RDONLY }, { MipsLinux::TGT_O_WRONLY, _O_WRONLY }, diff --git a/src/arch/mips/linux/linux.hh b/src/arch/mips/linux/linux.hh index 38f958c89..50a0362da 100644 --- a/src/arch/mips/linux/linux.hh +++ b/src/arch/mips/linux/linux.hh @@ -39,7 +39,7 @@ class MipsLinux : 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; |