mem: Use the new unbound port reporting mechanism in the mem ports.
authorGabe Black <gabeblack@google.com>
Sat, 13 Jun 2020 04:33:51 +0000 (21:33 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Jun 2020 20:15:12 +0000 (20:15 +0000)
commitd2beb1ffc8b2e826c9b54b4e02370bcab5db4c64
tree7be787fd2fdf0c2a9272e83c44f445907f67dac9
parent35d9bf99a8f8e0a57d37c12227d1e1d33505c4e7
mem: Use the new unbound port reporting mechanism in the mem ports.

There was an add-hoc check added to getAddrRanges, but the other methods
would just segfault if they tried to talk to their peers. This change
wraps all the calls in try blocks and catches the exception which the
peer will throw if it's the default and the port is not actually
connected to anything.

Change-Id: Ie46be0230f33f74305c599b251ca319a65ba008d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30296
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/port.cc
src/mem/port.hh