rename_impl.hh (2731:822b96578fba) | rename_impl.hh (2733:e0eac8fc5774) |
---|---|
1/* 2 * Copyright (c) 2004-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; --- 148 unchanged lines hidden (view full) --- 157 .name(name() + ".RENAME:skidInsts") 158 .desc("count of insts added to the skid buffer") 159 .flags(Stats::total) 160 ; 161} 162 163template <class Impl> 164void | 1/* 2 * Copyright (c) 2004-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; --- 148 unchanged lines hidden (view full) --- 157 .name(name() + ".RENAME:skidInsts") 158 .desc("count of insts added to the skid buffer") 159 .flags(Stats::total) 160 ; 161} 162 163template <class Impl> 164void |
165DefaultRename<Impl>::setCPU(FullCPU *cpu_ptr) | 165DefaultRename<Impl>::setCPU(O3CPU *cpu_ptr) |
166{ 167 DPRINTF(Rename, "Setting CPU pointer.\n"); 168 cpu = cpu_ptr; 169} 170 171template <class Impl> 172void 173DefaultRename<Impl>::setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr) --- 576 unchanged lines hidden (view full) --- 750 751 // Rename will have activity if it's unblocking. 752 if (any_unblocking) { 753 if (_status == Inactive) { 754 _status = Active; 755 756 DPRINTF(Activity, "Activating stage.\n"); 757 | 166{ 167 DPRINTF(Rename, "Setting CPU pointer.\n"); 168 cpu = cpu_ptr; 169} 170 171template <class Impl> 172void 173DefaultRename<Impl>::setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr) --- 576 unchanged lines hidden (view full) --- 750 751 // Rename will have activity if it's unblocking. 752 if (any_unblocking) { 753 if (_status == Inactive) { 754 _status = Active; 755 756 DPRINTF(Activity, "Activating stage.\n"); 757 |
758 cpu->activateStage(FullCPU::RenameIdx); | 758 cpu->activateStage(O3CPU::RenameIdx); |
759 } 760 } else { 761 // If it's not unblocking, then rename will not have any internal 762 // activity. Switch it to inactive. 763 if (_status == Active) { 764 _status = Inactive; 765 DPRINTF(Activity, "Deactivating stage.\n"); 766 | 759 } 760 } else { 761 // If it's not unblocking, then rename will not have any internal 762 // activity. Switch it to inactive. 763 if (_status == Active) { 764 _status = Inactive; 765 DPRINTF(Activity, "Deactivating stage.\n"); 766 |
767 cpu->deactivateStage(FullCPU::RenameIdx); | 767 cpu->deactivateStage(O3CPU::RenameIdx); |
768 } 769 } 770} 771 772template <class Impl> 773bool 774DefaultRename<Impl>::block(unsigned tid) 775{ --- 499 unchanged lines hidden --- | 768 } 769 } 770} 771 772template <class Impl> 773bool 774DefaultRename<Impl>::block(unsigned tid) 775{ --- 499 unchanged lines hidden --- |