ruby: gave ALIASED_REQUEST priority over BUFFER_FULL in sequencer
authorDerek Hower <drh5@cs.wisc.edu>
Fri, 13 Nov 2009 15:44:51 +0000 (09:44 -0600)
committerDerek Hower <drh5@cs.wisc.edu>
Fri, 13 Nov 2009 15:44:51 +0000 (09:44 -0600)
src/mem/ruby/system/Sequencer.cc

index bef0d5412b34e9cebdbe32b9d7bb3c6f17ae0e08..3e099770850212d564a2057a5a00db31ffb2a16b 100644 (file)
@@ -354,16 +354,14 @@ void Sequencer::hitCallback(SequencerRequest* srequest, DataBlock& data) {
 
 // Returns true if the sequencer already has a load or store outstanding
 int Sequencer::isReady(const RubyRequest& request) {
-  if (m_outstanding_count >= m_max_outstanding_requests) {
-    return LIBRUBY_BUFFER_FULL;
-  }
-
   if( m_writeRequestTable.exist(line_address(Address(request.paddr))) ||
       m_readRequestTable.exist(line_address(Address(request.paddr))) ){
-    //cout << "OUTSTANDING REQUEST EXISTS " << p << " VER " << m_version << endl;
-    //printProgress(cout);
     return LIBRUBY_ALIASED_REQUEST;
   }
+
+  if (m_outstanding_count >= m_max_outstanding_requests) {
+    return LIBRUBY_BUFFER_FULL;
+  }
   
   return 1;
 }