diff options
author | Nathan Binkert <nate@binkert.org> | 2009-05-11 10:38:45 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-05-11 10:38:45 -0700 |
commit | 24da30e317cdbf4b628141d69b2d17dac5ae3822 (patch) | |
tree | 190e2e14e278190d776dfd65a489f70700f4c8b0 /src/mem/gems_common/ioutil | |
parent | d8c592a05d884560b3cbbe04d9e1ed9cf6575eaa (diff) | |
download | gem5-24da30e317cdbf4b628141d69b2d17dac5ae3822.tar.xz |
ruby: Make ruby #includes use full paths to the files they're including.
This basically means changing all #include statements and changing
autogenerated code so that it generates the correct paths. Because
slicc generates #includes, I had to hard code the include paths to
mem/protocol.
Diffstat (limited to 'src/mem/gems_common/ioutil')
-rw-r--r-- | src/mem/gems_common/ioutil/attrlex.ll | 6 | ||||
-rw-r--r-- | src/mem/gems_common/ioutil/attrparse.yy | 6 | ||||
-rw-r--r-- | src/mem/gems_common/ioutil/confio.cc | 4 | ||||
-rw-r--r-- | src/mem/gems_common/ioutil/confio.hh | 2 | ||||
-rw-r--r-- | src/mem/gems_common/ioutil/initvar.cc | 18 | ||||
-rw-r--r-- | src/mem/gems_common/ioutil/vardecl.hh | 2 |
6 files changed, 19 insertions, 19 deletions
diff --git a/src/mem/gems_common/ioutil/attrlex.ll b/src/mem/gems_common/ioutil/attrlex.ll index 068591b07..3d142eef1 100644 --- a/src/mem/gems_common/ioutil/attrlex.ll +++ b/src/mem/gems_common/ioutil/attrlex.ll @@ -68,7 +68,7 @@ WHITESPACE [ \t] %{ -#include "Global.hh" +#include "mem/ruby/common/Global.hh" using namespace std; #include <string> @@ -80,12 +80,12 @@ using namespace std; // #include "simics/api.h" // }; -#include "FakeSimicsDataTypes.hh" +#include "mem/gems_common/ioutil/FakeSimicsDataTypes.hh" // CM: simics 1.6.5 API redefines fwrite, much to my chagrin #undef fwrite #undef printf -#include "attrparse.h" +#include "mem/gems_common/ioutil/attrparse.hh" #define MAX_INCLUDE_DEPTH 10 diff --git a/src/mem/gems_common/ioutil/attrparse.yy b/src/mem/gems_common/ioutil/attrparse.yy index 987e0cb3b..b6d0a9b72 100644 --- a/src/mem/gems_common/ioutil/attrparse.yy +++ b/src/mem/gems_common/ioutil/attrparse.yy @@ -65,7 +65,7 @@ /* Includes */ /*------------------------------------------------------------------------*/ -#include "Global.hh" +#include "mem/ruby/common/Global.hh" using namespace std; #include <string> @@ -77,9 +77,9 @@ using namespace std; // #include "simics/api.h" // }; -#include "FakeSimicsDataTypes.hh" +#include "mem/gems_common/ioutil/FakeSimicsDataTypes.hh" -#include "confio.hh" +#include "mem/gems_common/ioutil/confio.hh" // CM FIX: if I wasn't working on a paper: I'd re-write the grammer to // be left (or right) recursive, which ever is more efficient diff --git a/src/mem/gems_common/ioutil/confio.cc b/src/mem/gems_common/ioutil/confio.cc index 54a96527e..db2bf0a35 100644 --- a/src/mem/gems_common/ioutil/confio.cc +++ b/src/mem/gems_common/ioutil/confio.cc @@ -34,7 +34,7 @@ /* Includes */ /*------------------------------------------------------------------------*/ -#include "Global.hh" +#include "mem/ruby/common/Global.hh" #define SIM_HALT ASSERT(0) using namespace std; @@ -59,7 +59,7 @@ using namespace std; // #endif // }; -#include "confio.hh" +#include "mem/gems_common/ioutil/confio.hh" /*------------------------------------------------------------------------*/ /* Macro declarations */ diff --git a/src/mem/gems_common/ioutil/confio.hh b/src/mem/gems_common/ioutil/confio.hh index 143c4da8b..1e9718c16 100644 --- a/src/mem/gems_common/ioutil/confio.hh +++ b/src/mem/gems_common/ioutil/confio.hh @@ -33,7 +33,7 @@ /* Includes */ /*------------------------------------------------------------------------*/ -#include "FakeSimicsDataTypes.hh" +#include "mem/gems_common/ioutil/FakeSimicsDataTypes.hh" /*------------------------------------------------------------------------*/ /* Macro declarations */ diff --git a/src/mem/gems_common/ioutil/initvar.cc b/src/mem/gems_common/ioutil/initvar.cc index b6b7ff9e0..62fe3b6af 100644 --- a/src/mem/gems_common/ioutil/initvar.cc +++ b/src/mem/gems_common/ioutil/initvar.cc @@ -70,10 +70,10 @@ using namespace std; // #endif // }; -#include "Global.hh" +#include "mem/ruby/common/Global.hh" -#include "confio.hh" -#include "initvar.hh" +#include "mem/gems_common/ioutil/confio.hh" +#include "mem/gems_common/ioutil/initvar.hh" /*------------------------------------------------------------------------*/ /* Variable declarations */ @@ -94,7 +94,7 @@ using namespace std; char *NAME; #define PARAM_ARRAY( PTYPE, NAME, ARRAY_SIZE ) \ PTYPE NAME[ARRAY_SIZE]; -#include "config.hh" +#include "mem/ruby/config/config.hh" #undef PARAM #undef PARAM_UINT #undef PARAM_ULONG @@ -151,7 +151,7 @@ initvar_t::~initvar_t( ) NAME = NULL; \ } #define PARAM_ARRAY( PTYPE, NAME, ARRAY_SIZE ) -#include "config.hh" +#include "mem/ruby/config/config.hh" #undef PARAM #undef PARAM_UINT #undef PARAM_ULONG @@ -204,7 +204,7 @@ void initvar_t::init_config_reader( const char *initString ) initvar_get_attr, (void *) name, \ initvar_set_attr, (void *) name ); -#include "config.hh" +#include "mem/ruby/config/config.hh" #undef PARAM #undef PARAM_UINT #undef PARAM_ULONG @@ -380,7 +380,7 @@ static attr_value_t initvar_get_attr( void *ptr, void *obj ) return (ret); \ } -#include "config.hh" +#include "mem/ruby/config/config.hh" #undef PARAM #undef PARAM_UINT #undef PARAM_ULONG @@ -464,7 +464,7 @@ static set_error_t initvar_set_attr( void *ptr, void *obj, return Sim_Set_Ok; \ } -#include "config.hh" +#include "mem/ruby/config/config.hh" #undef PARAM #undef PARAM_UINT #undef PARAM_ULONG @@ -564,7 +564,7 @@ void initvar_t::list_param( FILE *fp ) } \ fprintf( fp, ")\n" ); -#include "config.hh" +#include "mem/ruby/config/config.hh" #undef PARAM #undef PARAM_UINT #undef PARAM_ULONG diff --git a/src/mem/gems_common/ioutil/vardecl.hh b/src/mem/gems_common/ioutil/vardecl.hh index 150868e18..607bc54f6 100644 --- a/src/mem/gems_common/ioutil/vardecl.hh +++ b/src/mem/gems_common/ioutil/vardecl.hh @@ -59,7 +59,7 @@ extern char *NAME; #define PARAM_ARRAY( PTYPE, NAME, ARRAY_SIZE ) \ extern PTYPE NAME[ARRAY_SIZE]; -#include "config.hh" +#include "mem/ruby/config/config.hh" #undef PARAM #undef PARAM_UINT #undef PARAM_ULONG |