lsq_impl.hh (3867:807483cfab77) | lsq_impl.hh (3870:fc7a16797788) |
---|---|
1/* 2 * Copyright (c) 2005-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 450 unchanged lines hidden (view full) --- 459 460 return total; 461} 462 463template<class Impl> 464unsigned 465LSQ<Impl>::numFreeEntries(unsigned tid) 466{ | 1/* 2 * Copyright (c) 2005-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 450 unchanged lines hidden (view full) --- 459 460 return total; 461} 462 463template<class Impl> 464unsigned 465LSQ<Impl>::numFreeEntries(unsigned tid) 466{ |
467 //if( lsqPolicy == Dynamic ) | 467 //if (lsqPolicy == Dynamic) |
468 //return numFreeEntries(); 469 //else 470 return thread[tid].numFreeEntries(); 471} 472 473template<class Impl> 474bool 475LSQ<Impl>::isFull() --- 41 unchanged lines hidden (view full) --- 517} 518 519template<class Impl> 520bool 521LSQ<Impl>::lqFull(unsigned tid) 522{ 523 //@todo: Change to Calculate All Entries for 524 //Dynamic Policy | 468 //return numFreeEntries(); 469 //else 470 return thread[tid].numFreeEntries(); 471} 472 473template<class Impl> 474bool 475LSQ<Impl>::isFull() --- 41 unchanged lines hidden (view full) --- 517} 518 519template<class Impl> 520bool 521LSQ<Impl>::lqFull(unsigned tid) 522{ 523 //@todo: Change to Calculate All Entries for 524 //Dynamic Policy |
525 if( lsqPolicy == Dynamic ) | 525 if (lsqPolicy == Dynamic) |
526 return lqFull(); 527 else 528 return thread[tid].lqFull(); 529} 530 531template<class Impl> 532bool 533LSQ<Impl>::sqFull() --- 12 unchanged lines hidden (view full) --- 546} 547 548template<class Impl> 549bool 550LSQ<Impl>::sqFull(unsigned tid) 551{ 552 //@todo: Change to Calculate All Entries for 553 //Dynamic Policy | 526 return lqFull(); 527 else 528 return thread[tid].lqFull(); 529} 530 531template<class Impl> 532bool 533LSQ<Impl>::sqFull() --- 12 unchanged lines hidden (view full) --- 546} 547 548template<class Impl> 549bool 550LSQ<Impl>::sqFull(unsigned tid) 551{ 552 //@todo: Change to Calculate All Entries for 553 //Dynamic Policy |
554 if( lsqPolicy == Dynamic ) | 554 if (lsqPolicy == Dynamic) |
555 return sqFull(); 556 else 557 return thread[tid].sqFull(); 558} 559 560template<class Impl> 561bool 562LSQ<Impl>::isStalled() --- 10 unchanged lines hidden (view full) --- 573 574 return true; 575} 576 577template<class Impl> 578bool 579LSQ<Impl>::isStalled(unsigned tid) 580{ | 555 return sqFull(); 556 else 557 return thread[tid].sqFull(); 558} 559 560template<class Impl> 561bool 562LSQ<Impl>::isStalled() --- 10 unchanged lines hidden (view full) --- 573 574 return true; 575} 576 577template<class Impl> 578bool 579LSQ<Impl>::isStalled(unsigned tid) 580{ |
581 if( lsqPolicy == Dynamic ) | 581 if (lsqPolicy == Dynamic) |
582 return isStalled(); 583 else 584 return thread[tid].isStalled(); 585} 586 587template<class Impl> 588bool 589LSQ<Impl>::hasStoresToWB() --- 47 unchanged lines hidden --- | 582 return isStalled(); 583 else 584 return thread[tid].isStalled(); 585} 586 587template<class Impl> 588bool 589LSQ<Impl>::hasStoresToWB() --- 47 unchanged lines hidden --- |