Review Board 2.0.15


sim: unify memory & ethernet port binding mechanisms.

Review Request #1922 - Created June 13, 2013 and updated

Information
Steve Reinhardt
gem5
default
Reviewers
Default
Changeset 9757:071a2d97327a
---------------------------
sim: unify memory & ethernet port binding mechanisms.

Get rid of the ugly special-casing and dynamic casting going
on in connectPorts(), and make the port binding mechanism
more extensible.  This is done by moving the port lookup
methods to SimObject and  creating a common base Port class
from which both the old Port (now MemPort) and EtherInt
(which perhaps should be renamed EtherPort) derive.

   

Issue Summary

1 0 1 0
Description From Last Updated Status
Review request changed
Updated (June 13, 2013, 4:04 a.m.)

Change Summary:

Update include guard on sim/port.hh (old value was left over from a prior naming scheme I abandoned).

Description:

~  

Changeset 9757:a2acc94bd8d0

  ~

Changeset 9757:071a2d97327a

   
   

sim: unify memory & ethernet port binding mechanisms.

   
   

Get rid of the ugly special-casing and dynamic casting going

    on in connectPorts(), and make the port binding mechanism
    more extensible. This is done by moving the port lookup
    methods to SimObject and creating a common base Port class
    from which both the old Port (now MemPort) and EtherInt
    (which perhaps should be renamed EtherPort) derive.

Diff:

Revision 2 (+287 -102)

Show changes