summaryrefslogtreecommitdiff
path: root/src/arch/arm/linux
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2016-03-17 10:22:39 -0700
committerBrandon Potter <brandon.potter@amd.com>2016-03-17 10:22:39 -0700
commitb8688346a51860c7d582cf3fe310895e93a0ab6c (patch)
tree80d22e131e63a687a1b16129ba1e87994f04a0e2 /src/arch/arm/linux
parent75d691060742d59894c147ad1abde4c6c9803346 (diff)
downloadgem5-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/arm/linux')
-rw-r--r--src/arch/arm/linux/linux.cc4
-rw-r--r--src/arch/arm/linux/linux.hh4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/arm/linux/linux.cc b/src/arch/arm/linux/linux.cc
index 62519d38b..2428c4986 100644
--- a/src/arch/arm/linux/linux.cc
+++ b/src/arch/arm/linux/linux.cc
@@ -46,7 +46,7 @@
#include "arch/arm/linux/linux.hh"
// open(2) flags translation table
-OpenFlagTransTable ArmLinux32::openFlagTable[] = {
+SyscallFlagTransTable ArmLinux32::openFlagTable[] = {
#ifdef _MSC_VER
{ ArmLinux32::TGT_O_RDONLY, _O_RDONLY },
{ ArmLinux32::TGT_O_WRONLY, _O_WRONLY },
@@ -99,7 +99,7 @@ const int ArmLinux32::NUM_OPEN_FLAGS = sizeof(ArmLinux32::openFlagTable) /
sizeof(ArmLinux32::openFlagTable[0]);
// open(2) flags translation table
-OpenFlagTransTable ArmLinux64::openFlagTable[] = {
+SyscallFlagTransTable ArmLinux64::openFlagTable[] = {
#ifdef _MSC_VER
{ ArmLinux64::TGT_O_RDONLY, _O_RDONLY },
{ ArmLinux64::TGT_O_WRONLY, _O_WRONLY },
diff --git a/src/arch/arm/linux/linux.hh b/src/arch/arm/linux/linux.hh
index dd2f1675d..68ed6ed77 100644
--- a/src/arch/arm/linux/linux.hh
+++ b/src/arch/arm/linux/linux.hh
@@ -53,7 +53,7 @@ class ArmLinux32 : 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;
@@ -213,7 +213,7 @@ class ArmLinux64 : 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;