Review Board 2.0.15


MEM: Fatal when no port can be found for an address

Review Request #1037 - Created Feb. 12, 2012 and submitted

Information
Andreas Hansson
gem5
default
Reviewers
Default
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.
util/regress all passing (disregarding t1000 and eio)

Issue Summary

2 0 2 0
Review request changed
Updated (Feb. 24, 2012, 12:46 a.m.)

Status: Closed (submitted)