cpu.cc (2831:0a42b294727c) | cpu.cc (2840:227f7c4f8c81) |
---|---|
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; --- 700 unchanged lines hidden (view full) --- 709 710 removeThread(tid); 711 } 712*/ 713} 714 715template <class Impl> 716void | 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; --- 700 unchanged lines hidden (view full) --- 709 710 removeThread(tid); 711 } 712*/ 713} 714 715template <class Impl> 716void |
717FullO3CPU<Impl>::switchOut(Sampler *_sampler) | 717FullO3CPU |
718{ | 718{ |
719 sampler = _sampler; | |
720 switchCount = 0; 721 fetch.switchOut(); 722 decode.switchOut(); 723 rename.switchOut(); 724 iew.switchOut(); 725 commit.switchOut(); 726 727 // Wake the CPU and record activity so everything can drain out if --- 12 unchanged lines hidden (view full) --- 740 commit.doSwitchOut(); 741 instList.clear(); 742 while (!removeList.empty()) { 743 removeList.pop(); 744 } 745 746#if USE_CHECKER 747 if (checker) | 719 switchCount = 0; 720 fetch.switchOut(); 721 decode.switchOut(); 722 rename.switchOut(); 723 iew.switchOut(); 724 commit.switchOut(); 725 726 // Wake the CPU and record activity so everything can drain out if --- 12 unchanged lines hidden (view full) --- 739 commit.doSwitchOut(); 740 instList.clear(); 741 while (!removeList.empty()) { 742 removeList.pop(); 743 } 744 745#if USE_CHECKER 746 if (checker) |
748 checker->switchOut(sampler); | 747 checker->switchOut(); |
749#endif 750 751 if (tickEvent.scheduled()) 752 tickEvent.squash(); | 748#endif 749 750 if (tickEvent.scheduled()) 751 tickEvent.squash(); |
753 sampler->signalSwitched(); | |
754 _status = SwitchedOut; 755 } 756 assert(switchCount <= 5); 757} 758 759template <class Impl> 760void 761FullO3CPU<Impl>::takeOverFrom(BaseCPU *oldCPU) --- 504 unchanged lines hidden --- | 752 _status = SwitchedOut; 753 } 754 assert(switchCount <= 5); 755} 756 757template <class Impl> 758void 759FullO3CPU<Impl>::takeOverFrom(BaseCPU *oldCPU) --- 504 unchanged lines hidden --- |