MEM: Remove the notion of the default port
Review Request #946 - Created Dec. 18, 2011 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
MEM: Remove the notion of the default port This patch removes the default port and instead relies on the peer being set to NULL initially. The binding check (i.e. is a port connected or not) will eventually be moved to the init function of the modules.
util/regress all passing (disregarding t1000 and eio)
Posted (Jan. 4, 2012, 1:37 p.m.)
So the initial idea of the DefaultPeerPort is that otherwise (if you just set the peer to NULL) then if someone tries to send to an unconnected port you get a segfault, which is not helpful. Seems like in that sense this is a step backwards. Do you have other plans to avoid segfaulting on unconnected ports, that don't involve checking for a null peer on every packet send?
