| ~ | | Changeset 9025:03e01e750285 |
| | ~ | Changeset 9031:d9e932f46019 |
| | |
|
| ~ | | Packet: Unify the use of PortId in packet and port |
| | ~ | Packet: Unify the use of PortID in packet and port |
| | |
|
| | | This patch removes the Packet::NodeID typedef and unifies it with the
|
| ~ | | PortId that was previously declared in the Port class. The src and
|
| ~ | | dest fields in the packet are used to hold a port id (e.g. in the
|
| ~ | | bus), and thus the two should actually be the same. As a side effect,
|
| ~ | | the INVALID_PORT_ID is also moved to the Packet class. |
| | ~ | Port::PortId. The src and dest fields in the packet are used to hold a
|
| | ~ | port id (e.g. in the bus), and thus the two should actually be the
|
| | ~ | same. |
| | ~ |
|
| | + | The typedef PortID is now global (in base/types.hh) and aligned with
|
| | + | the ThreadID in terms of capitalisation and naming of the
|
| | + | InvalidPortID constant. |
| | |
|
| | | Before this patch, two flags were used for valid destination and
|
| ~ | | source, rather than relying on a named value (INVALID_PORT_ID), and
|
| | ~ | source, rather than relying on a named value (InvalidPortID), and
|
| | | this is now redundant, as the src and dest field themselves are
|
| | | sufficient to tell whether the current value is a valid port
|
| | | identifier or not. Consequently, the VALID_SRC and VALID_DST are
|
| | | removed. |
| | |
|
| | | As part of the cleaning up, a number of int parameters and local
|
| ~ | | variables are updated to use PortId. |
| | ~ | variables are updated to use PortID. |
| | |
|
| ~ | | Note that Ruby still has its own NodeID typedef. |
| | ~ | Note that Ruby still has its own NodeID typedef. Furthermore, the
|
| | + | MemObject getMaster/SlavePort still has an int idx parameter with a
|
| | + | default value of -1 which should eventually change to PortID idx =
|
| | + | InvalidPortID. |