diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-02-24 11:40:29 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-02-24 11:40:29 -0500 |
commit | ef4af8cec8b1826abff5b92b9fec32f7c2818372 (patch) | |
tree | 3e4f954a11062139313602304594eeff217c6948 /src/dev/alpha/tsunami_pchip.cc | |
parent | e121708e08465344a2ab4df8f562159dffdf18d6 (diff) | |
download | gem5-ef4af8cec8b1826abff5b92b9fec32f7c2818372.tar.xz |
MEM: Fatal when no port can be found for an address
This patch adds a check in the findPort method to ensure that an
invalid port id is never returned. Previously this could happen if no
default port was set, and no address matched the request, in which
case -1 was returned causing a SEGFAULT when using the id to index in
the port array. To clean things up further a symbolic name is added
for the invalid port id.
Diffstat (limited to 'src/dev/alpha/tsunami_pchip.cc')
0 files changed, 0 insertions, 0 deletions