Make Bus::findPort() a little more useful.
authorSteve Reinhardt <stever@eecs.umich.edu>
Mon, 16 Jul 2007 03:09:03 +0000 (20:09 -0700)
committerSteve Reinhardt <stever@eecs.umich.edu>
Mon, 16 Jul 2007 03:09:03 +0000 (20:09 -0700)
commitf790f34fe30aaca22b829104a8cf3f547624132a
tree5535717c29746a890b31c386438f4d592170cbbc
parent9172876dd7ba4877c586ced30904548539451f37
Make Bus::findPort() a little more useful.
Move check for loops outside, since half the call sites
end up working around it anyway.  Return integer port ID
instead of port object pointer.

--HG--
extra : convert_revision : 4c31fe9930f4d1aa4919e764efb7c50d43792ea3
src/mem/bus.cc
src/mem/bus.hh