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>
This commit is contained in:
parent
50812a20f1
commit
3172501a59
1 changed files with 1 additions and 0 deletions
|
@ -612,6 +612,7 @@ class Packet : public Printable
|
||||||
void setResponderHadWritable()
|
void setResponderHadWritable()
|
||||||
{
|
{
|
||||||
assert(cacheResponding());
|
assert(cacheResponding());
|
||||||
|
assert(!responderHadWritable());
|
||||||
flags.set(RESPONDER_HAD_WRITABLE);
|
flags.set(RESPONDER_HAD_WRITABLE);
|
||||||
}
|
}
|
||||||
bool responderHadWritable() const
|
bool responderHadWritable() const
|
||||||
|
|
Loading…
Reference in a new issue