cpu: Add drain check functionality to IEW

IEW did not check the instQueue and memDepUnit to ensure
they were drained.  This caused issues when drainSanityCheck()
did check those structures after asserting IEW was drained.
This commit is contained in:
Mitch Hayenga
2014-10-29 23:18:26 -05:00
parent b31d9e93e2
commit 6847bbf7ce
5 changed files with 31 additions and 1 deletions

View File

@@ -145,6 +145,9 @@ class InstructionQueue
/** Sets the global time buffer. */
void setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr);
/** Determine if we are drained. */
bool isDrained() const;
/** Perform sanity checks after a drain. */
void drainSanityCheck() const;