Ruby: Remove the physMemPort and instead access memory directly
Review Request #1107 - Created March 20, 2012 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Ruby: Remove the physMemPort and instead access memory directly This patch removes the physMemPort from the RubySequencer and instead uses the system pointer to access the physmem. The system already keeps track of the physmem and the valid memory address ranges, and with this patch we merely make use of that existing functionality. The memory is modified so that it is possible to call the access functions (atomic and functional) without going through the port, and the memory is allowed to be unconnected, i.e. have no ports (since Ruby does not attach it like the conventional memory system).
util/regress all passing (disregarding t1000 and eio)
Posted (March 20, 2012, 2:11 a.m.)
Two things - * Why not provide ruby port with the physmem pointer directly instead of going through the system pointer? * Where is the system pointer being sent to ruby port?
Ship It!
Again, the comment is just a suggestion, not an issue that requires addressing.
-
src/mem/ruby/system/RubyPort.cc (Diff revision 1) -
Just curious if it really matters that we call doAtomicAccess() rather than doFunctionalAccess() here? Not a big deal, but if doFunctionalAccess() is adequate, it might be nice to use a single interface.
