diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2016-12-05 16:48:24 -0500 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2016-12-05 16:48:24 -0500 |
commit | 3172501a590cff710568f016264b83b345458f19 (patch) | |
tree | e701e27beb5f6d750bb49db5a29e4b95e3f94447 | |
parent | 50812a20f1f92782f6d8f4976ce39753e7c0864d (diff) | |
download | gem5-3172501a590cff710568f016264b83b345458f19.tar.xz |
mem: Assert that the responderHadWritable is set only once
Change-Id: Ie3beeef25331f84a0a5bcc17f7a791f4a829695b
Reviewed-by: Andreas Hansson <andreas.hansson@arm.com>
Reviewed-by: Stephan Diestelhorst <stephan.diestelhorst@arm.com>
-rw-r--r-- | src/mem/packet.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh index b6a0e7c7d..74a2de135 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -612,6 +612,7 @@ class Packet : public Printable void setResponderHadWritable() { assert(cacheResponding()); + assert(!responderHadWritable()); flags.set(RESPONDER_HAD_WRITABLE); } bool responderHadWritable() const |