diff options
author | Joel Hestness <jthestness@gmail.com> | 2013-09-11 15:35:18 -0500 |
---|---|---|
committer | Joel Hestness <jthestness@gmail.com> | 2013-09-11 15:35:18 -0500 |
commit | cc155ffa0d6b199b71bc598c7f267a4b7da07ac3 (patch) | |
tree | e98b2f1ef9b123034f3285d2830a9891a3a67f39 /src/mem/packet.hh | |
parent | a1f9081babaf67b5e98d6ad35a6b1f6130e12fd7 (diff) | |
download | gem5-cc155ffa0d6b199b71bc598c7f267a4b7da07ac3.tar.xz |
ruby: Fix Topology throttle connections
The Topology source sets up input and output buffers for each of the external
nodes of a topology by indexing on Ruby's generated controller unique IDs.
These unique IDs are found by adding the MachineType_base_number to the version
number of each controller (see any generated *_Controller.cc - init() calls
getToNetQueue and getFromNetQueue using m_version + base). However, the
Topology object used the cntrl_id - which is required to be unique across all
controllers - to index the controllers list as they are being connected to
their input and output buffers. If the cntrl_ids did not match the Ruby unique
ID, the throttles end up connected to incorrectly indexed nodes in the network,
resulting in packets traversing incorrect network paths. This patch fixes the
Topology indexing scheme by using the Ruby unique ID to match that of the
SimpleNetwork buffer vectors.
Diffstat (limited to 'src/mem/packet.hh')
0 files changed, 0 insertions, 0 deletions