summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpu/o3/iew.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpu/o3/iew.hh b/src/cpu/o3/iew.hh
index 5adf32752..1213cf12b 100644
--- a/src/cpu/o3/iew.hh
+++ b/src/cpu/o3/iew.hh
@@ -213,7 +213,8 @@ class DefaultIEW
void incrWb(InstSeqNum &sn)
{
- if (++wbOutstanding == wbMax)
+ ++wbOutstanding;
+ if (wbOutstanding == wbMax)
ableToIssue = false;
DPRINTF(IEW, "wbOutstanding: %i [sn:%lli]\n", wbOutstanding, sn);
assert(wbOutstanding <= wbMax);
@@ -224,8 +225,9 @@ class DefaultIEW
void decrWb(InstSeqNum &sn)
{
- if (wbOutstanding-- == wbMax)
+ if (wbOutstanding == wbMax)
ableToIssue = true;
+ wbOutstanding--;
DPRINTF(IEW, "wbOutstanding: %i [sn:%lli]\n", wbOutstanding, sn);
assert(wbOutstanding >= 0);
#ifdef DEBUG