Sequencer.cc (6850:d480ef5b9028) | Sequencer.cc (6856:f3caa1cd1d9a) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 340 unchanged lines hidden (view full) --- 349 } 350 351 m_hit_callback(srequest->id); 352 delete srequest; 353} 354 355// Returns true if the sequencer already has a load or store outstanding 356int Sequencer::isReady(const RubyRequest& request) { | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 340 unchanged lines hidden (view full) --- 349 } 350 351 m_hit_callback(srequest->id); 352 delete srequest; 353} 354 355// Returns true if the sequencer already has a load or store outstanding 356int Sequencer::isReady(const RubyRequest& request) { |
357 if (m_outstanding_count >= m_max_outstanding_requests) { 358 return LIBRUBY_BUFFER_FULL; 359 } 360 | |
361 if( m_writeRequestTable.exist(line_address(Address(request.paddr))) || 362 m_readRequestTable.exist(line_address(Address(request.paddr))) ){ | 357 if( m_writeRequestTable.exist(line_address(Address(request.paddr))) || 358 m_readRequestTable.exist(line_address(Address(request.paddr))) ){ |
363 //cout << "OUTSTANDING REQUEST EXISTS " << p << " VER " << m_version << endl; 364 //printProgress(cout); | |
365 return LIBRUBY_ALIASED_REQUEST; 366 } | 359 return LIBRUBY_ALIASED_REQUEST; 360 } |
361 362 if (m_outstanding_count >= m_max_outstanding_requests) { 363 return LIBRUBY_BUFFER_FULL; 364 } |
|
367 368 return 1; 369} 370 371bool Sequencer::empty() const { 372 return (m_writeRequestTable.size() == 0) && (m_readRequestTable.size() == 0); 373} 374 --- 170 unchanged lines hidden --- | 365 366 return 1; 367} 368 369bool Sequencer::empty() const { 370 return (m_writeRequestTable.size() == 0) && (m_readRequestTable.size() == 0); 371} 372 --- 170 unchanged lines hidden --- |