diff --git a/src/cpu/o3/inst_queue_impl.hh b/src/cpu/o3/inst_queue_impl.hh index 84725978af..0f8716bbce 100644 --- a/src/cpu/o3/inst_queue_impl.hh +++ b/src/cpu/o3/inst_queue_impl.hh @@ -773,12 +773,12 @@ InstructionQueue::scheduleReadyInsts() IssueStruct *i2e_info = issueToExecuteQueue->access(0); DynInstPtr mem_inst; - while (mem_inst = std::move(getDeferredMemInstToExecute())) { + while ((mem_inst = std::move(getDeferredMemInstToExecute()))) { addReadyMemInst(mem_inst); } // See if any cache blocked instructions are able to be executed - while (mem_inst = std::move(getBlockedMemInstToExecute())) { + while ((mem_inst = std::move(getBlockedMemInstToExecute()))) { addReadyMemInst(mem_inst); } diff --git a/src/cpu/pred/tage_base.cc b/src/cpu/pred/tage_base.cc index 108f6a2bb5..791f5d43ce 100644 --- a/src/cpu/pred/tage_base.cc +++ b/src/cpu/pred/tage_base.cc @@ -467,7 +467,7 @@ TAGEBase::handleAllocAndUReset(bool alloc, bool taken, BranchInfo* bi, //Allocate entries unsigned numAllocated = 0; for (int i = X; i <= nHistoryTables; i++) { - if ((gtable[i][bi->tableIndices[i]].u == 0)) { + if (gtable[i][bi->tableIndices[i]].u == 0) { gtable[i][bi->tableIndices[i]].tag = bi->tableTags[i]; gtable[i][bi->tableIndices[i]].ctr = (taken) ? 0 : -1; ++numAllocated;