From 6847bbf7cefcebfeed6ec29fa139efcb3ce20be4 Mon Sep 17 00:00:00 2001 From: Mitch Hayenga Date: Wed, 29 Oct 2014 23:18:26 -0500 Subject: 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. --- src/cpu/o3/inst_queue.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cpu/o3/inst_queue.hh') diff --git a/src/cpu/o3/inst_queue.hh b/src/cpu/o3/inst_queue.hh index d59d5281b..c6c55d08a 100644 --- a/src/cpu/o3/inst_queue.hh +++ b/src/cpu/o3/inst_queue.hh @@ -145,6 +145,9 @@ class InstructionQueue /** Sets the global time buffer. */ void setTimeBuffer(TimeBuffer *tb_ptr); + /** Determine if we are drained. */ + bool isDrained() const; + /** Perform sanity checks after a drain. */ void drainSanityCheck() const; -- cgit v1.2.3