summaryrefslogtreecommitdiff
path: root/src/cpu/testers/directedtest
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-02-24 11:40:29 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2012-02-24 11:40:29 -0500
commitef4af8cec8b1826abff5b92b9fec32f7c2818372 (patch)
tree3e4f954a11062139313602304594eeff217c6948 /src/cpu/testers/directedtest
parente121708e08465344a2ab4df8f562159dffdf18d6 (diff)
downloadgem5-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/cpu/testers/directedtest')
0 files changed, 0 insertions, 0 deletions