diff options
author | Korey Sewell <ksewell@umich.edu> | 2006-04-13 05:42:18 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2006-04-13 05:42:18 -0400 |
commit | 5afed24e1c8305a2def21dd911f27c34842b96b7 (patch) | |
tree | f6334e4b6791a9f72d9414e8b8a6cdf4950d1075 /sim | |
parent | 2dcc9ec5b2f3bb094b53a47fafcf4e0820f7b24b (diff) | |
download | gem5-5afed24e1c8305a2def21dd911f27c34842b96b7.tar.xz |
Changes that get rid of the OSFlags and derive a new class of this format <architecture>-<OS>.
This class is derived from the original <OS> class and is used to define information that
is both architecure and OS specific (for example, the AlphaLinux class is derived from the
Linux class and defined in arch/alpha/linux/linux.hh).
SConscript:
no need to compile linux.cc and tru64.cc now, since openFlagsTable has been moved
arch/alpha/SConscript:
compile linux.cc and tru64.cc within alpha arch.
arch/alpha/linux/process.cc:
template syscall functions on AlphaLinux instead of Linux ... AlphaLinux is derived off of Linux
arch/alpha/tru64/process.cc:
template syscall functions on AlphaTru64 instead of Linux ... AlphaTru64 is derived off of Linux
moved tableFunc syscall function into this file
arch/mips/SConscript:
compile mips_linux.cc for openFlags table
arch/mips/isa_traits.hh:
remove constants from here
arch/mips/linux_process.cc:
template syscall functions on MipsLinux instead of Linux ... MipsLinux is derived off of Linux
kern/linux/linux.hh:
remove OSFlags
kern/tru64/tru64.hh:
remove OSFlags def., openFlagTable, and tableFunc ...
sim/syscall_emul.hh:
go back to using "OS" instead of "OSFlags"
arch/alpha/linux/linux.cc:
defines openFlagTable
arch/alpha/linux/linux.hh:
arch/alpha/tru64/tru64.hh:
Alpha Linux constants placed here in class derived from Linux class
arch/alpha/tru64/tru64.cc:
defines openFlagTable for AlphaTru64
arch/mips/mips_linux.cc:
MIPS Linux open flag table
arch/mips/mips_linux.hh:
Mips Linux constants placed here in class derived from Linux class
--HG--
extra : convert_revision : e6c1c2c895429c28fd141732e223e897ab19315e
Diffstat (limited to 'sim')
-rw-r--r-- | sim/syscall_emul.hh | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/sim/syscall_emul.hh b/sim/syscall_emul.hh index bab29ca6a..00f016410 100644 --- a/sim/syscall_emul.hh +++ b/sim/syscall_emul.hh @@ -348,14 +348,14 @@ ioctlFunc(SyscallDesc *desc, int callnum, Process *process, } switch (req) { - case OS::OSFlags::TIOCISATTY: - case OS::OSFlags::TIOCGETP: - case OS::OSFlags::TIOCSETP: - case OS::OSFlags::TIOCSETN: - case OS::OSFlags::TIOCSETC: - case OS::OSFlags::TIOCGETC: - case OS::OSFlags::TIOCGETS: - case OS::OSFlags::TIOCGETA: + case OS::TIOCISATTY: + case OS::TIOCGETP: + case OS::TIOCSETP: + case OS::TIOCSETN: + case OS::TIOCSETC: + case OS::TIOCGETC: + case OS::TIOCGETS: + case OS::TIOCGETA: return -ENOTTY; default: @@ -719,7 +719,7 @@ mmapFunc(SyscallDesc *desc, int num, Process *p, ExecContext *xc) p->pTable->allocate(start, length); p->mmap_end += length; - if (!(flags & OS::OSFlags::TGT_MAP_ANONYMOUS)) { + if (!(flags & OS::TGT_MAP_ANONYMOUS)) { warn("allowing mmap of file @ fd %d. " "This will break if not /dev/zero.", xc->getSyscallArg(4)); } @@ -810,7 +810,7 @@ getrusageFunc(SyscallDesc *desc, int callnum, Process *process, int who = xc->getSyscallArg(0); // THREAD, SELF, or CHILDREN TypedBufferArg<typename OS::rusage> rup(xc->getSyscallArg(1)); - if (who != OS::OSFlags::TGT_RUSAGE_SELF) { + if (who != OS::TGT_RUSAGE_SELF) { // don't really handle THREAD or CHILDREN, but just warn and // plow ahead warn("getrusage() only supports RUSAGE_SELF. Parameter %d ignored.", @@ -843,4 +843,7 @@ getrusageFunc(SyscallDesc *desc, int callnum, Process *process, return 0; } + + + #endif // __SIM_SYSCALL_EMUL_HH__ |