rename System.{hh,cc} to RubySystem.{hh,cc}
Review Request #2965 - Created July 13, 2015 and submitted
| Information | |
|---|---|
| David Hashe | |
| gem5 | |
| default | |
| 3113 | |
| Reviewers | |
| Default | |
Changeset 10923:8bdfe8dd9c2b
---------------------------
rename System.{hh,cc} to RubySystem.{hh,cc}The eventual aim of this change is to pass RubySystem pointers through to objects generated from the SLICC protocol code.
Because some of these objects need to dereference their RubySystem pointers, they need access to the System.hh header file.
In src/mem/ruby/SConscript, the MakeInclude function creates single-line header files in the build directory that do nothing except include the corresponding header file from the source tree.
However, SLICC also generates a list of header files from its symbol table, and writes it to mem/protocol/Types.hh in the build directory. This code assumes that the header file name is the same as the class name.
The end result of this is the many of the generated slicc files try to include RubySystem.hh, when the file they really need is System.hh. The path of least resistence is just to rename System.hh to RubySystem.hh.
I am as such fine with the patch. I myself have faced similar problem with the naming of
the header file.Can you expand on your eventual aim? I am trying to understand the need for spreading the
ruby system pointer around. Please note that classic memory system has no notion of a memory
system pointer. I think ruby should also try to avoid having a memory system pointer in each
object.
Are they comments on this? We'd like to ship this soon.
I had been putting off this review since it touched so many files. I didn't realize it was so simple ;).
Any last comments? I plan to ship this before the EoD today.
