mem: Check response only when needed in CommMonitor
authorChun-Chen TK Hsu <chunchenhsu@google.com>
Thu, 11 Jul 2019 07:27:41 +0000 (15:27 +0800)
committerChun-Chen TK Hsu <chunchenhsu@google.com>
Sat, 13 Jul 2019 03:17:22 +0000 (03:17 +0000)
commit9af53ddaec43653d915649173660dc5c71f06a72
treeb734081b59a38f72ecab2949baaa4f5adda050b7
parent059122e22b3651cd7cb3d6581176c745c64cbe8e
mem: Check response only when needed in CommMonitor

CommMonitor checks pkt->isResponse() for all packets in recvAtomic().
This assertion fails when packets don't need response, such as WritebackDirty.
This change fixes this.

Signed-off-by: Chun-Chen TK Hsu
Change-Id: I168e349e179b14fa5472698d9300478dc89693fb
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19428
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/comm_monitor.cc