O3: Fix GCC 4.2.4 complaint
authorAli Saidi <saidi@eecs.umich.edu>
Sun, 13 Feb 2011 21:51:15 +0000 (16:51 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Sun, 13 Feb 2011 21:51:15 +0000 (16:51 -0500)
src/cpu/o3/inst_queue_impl.hh

index d6da4b818f3897660f04ac27f364e9bda6cdc536..aa21a0edc81a4d3df140692361e56e08c15717b7 100644 (file)
@@ -749,7 +749,7 @@ InstructionQueue<Impl>::scheduleReadyInsts()
     DynInstPtr deferred_mem_inst;
     int total_deferred_mem_issued = 0;
     while (total_deferred_mem_issued < totalWidth &&
-           (deferred_mem_inst = getDeferredMemInstToExecute()) != NULL) {
+           (deferred_mem_inst = getDeferredMemInstToExecute()) != 0) {
         issueToExecuteQueue->access(0)->size++;
         instsToExecute.push_back(deferred_mem_inst);
         total_deferred_mem_issued++;