From 5afed24e1c8305a2def21dd911f27c34842b96b7 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Thu, 13 Apr 2006 05:42:18 -0400 Subject: Changes that get rid of the OSFlags and derive a new class of this format -. This class is derived from the original 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 --- kern/linux/linux.hh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'kern/linux/linux.hh') diff --git a/kern/linux/linux.hh b/kern/linux/linux.hh index 93d92a85b..bab460333 100644 --- a/kern/linux/linux.hh +++ b/kern/linux/linux.hh @@ -44,8 +44,8 @@ class Linux {}; #include #include -#include "sim/syscall_emul.hh" #include "arch/isa_traits.hh" +#include "sim/syscall_emul.hh" class TranslatingPort; @@ -67,8 +67,6 @@ class Linux { typedef uint32_t gid_t; //@} - typedef TheISA::OSFlags OSFlags; - #if BSD_HOST typedef struct stat hst_stat; typedef struct stat hst_stat64; @@ -77,14 +75,6 @@ class Linux { typedef struct stat64 hst_stat64; #endif - - /// This table maps the target open() flags to the corresponding - /// host open() flags. - static OpenFlagTransTable openFlagTable[]; - - /// Number of entries in openFlagTable[]. - static const int NUM_OPEN_FLAGS; - /// Stat buffer. Note that we can't call it 'stat' since that /// gets #defined to something else on some systems. struct tgt_stat { -- cgit v1.2.3