From: Nikos Nikoleris Date: Mon, 5 Dec 2016 21:48:24 +0000 (-0500) Subject: mem: Assert that the responderHadWritable is set only once X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3172501a590cff710568f016264b83b345458f19;p=gem5.git mem: Assert that the responderHadWritable is set only once Change-Id: Ie3beeef25331f84a0a5bcc17f7a791f4a829695b Reviewed-by: Andreas Hansson Reviewed-by: Stephan Diestelhorst --- 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