commit_impl.hh (5336:c7e21f4e5a2e) | commit_impl.hh (5529:9ae69b9cd7fd) |
---|---|
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; --- 32 unchanged lines hidden (view full) --- 41#include "cpu/exetrace.hh" 42#include "cpu/o3/commit.hh" 43#include "cpu/o3/thread_state.hh" 44 45#if USE_CHECKER 46#include "cpu/checker/cpu.hh" 47#endif 48 | 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; --- 32 unchanged lines hidden (view full) --- 41#include "cpu/exetrace.hh" 42#include "cpu/o3/commit.hh" 43#include "cpu/o3/thread_state.hh" 44 45#if USE_CHECKER 46#include "cpu/checker/cpu.hh" 47#endif 48 |
49#include "params/DerivO3CPU.hh" 50 |
|
49template <class Impl> 50DefaultCommit<Impl>::TrapEvent::TrapEvent(DefaultCommit<Impl> *_commit, 51 unsigned _tid) 52 : Event(&mainEventQueue, CPU_Tick_Pri), commit(_commit), tid(_tid) 53{ 54 this->setFlags(Event::AutoDelete); 55} 56 --- 9 unchanged lines hidden (view full) --- 66template <class Impl> 67const char * 68DefaultCommit<Impl>::TrapEvent::description() const 69{ 70 return "Trap"; 71} 72 73template <class Impl> | 51template <class Impl> 52DefaultCommit<Impl>::TrapEvent::TrapEvent(DefaultCommit<Impl> *_commit, 53 unsigned _tid) 54 : Event(&mainEventQueue, CPU_Tick_Pri), commit(_commit), tid(_tid) 55{ 56 this->setFlags(Event::AutoDelete); 57} 58 --- 9 unchanged lines hidden (view full) --- 68template <class Impl> 69const char * 70DefaultCommit<Impl>::TrapEvent::description() const 71{ 72 return "Trap"; 73} 74 75template <class Impl> |
74DefaultCommit | 76DefaultCommit<Impl>::DefaultCommit(O3CPU *_cpu, DerivO3CPUParams *params) |
75 : cpu(_cpu), 76 squashCounter(0), 77 iewToCommitDelay(params->iewToCommitDelay), 78 commitToIEWDelay(params->commitToIEWDelay), 79 renameToROBDelay(params->renameToROBDelay), 80 fetchToCommitDelay(params->commitToFetchDelay), 81 renameWidth(params->renameWidth), 82 commitWidth(params->commitWidth), | 77 : cpu(_cpu), 78 squashCounter(0), 79 iewToCommitDelay(params->iewToCommitDelay), 80 commitToIEWDelay(params->commitToIEWDelay), 81 renameToROBDelay(params->renameToROBDelay), 82 fetchToCommitDelay(params->commitToFetchDelay), 83 renameWidth(params->renameWidth), 84 commitWidth(params->commitWidth), |
83 numThreads(params->numberOfThreads), | 85 numThreads(params->numThreads), |
84 drainPending(false), 85 switchedOut(false), 86 trapLatency(params->trapLatency) 87{ 88 _status = Active; 89 _nextStatus = Inactive; 90 std::string policy = params->smtCommitPolicy; 91 --- 1283 unchanged lines hidden --- | 86 drainPending(false), 87 switchedOut(false), 88 trapLatency(params->trapLatency) 89{ 90 _status = Active; 91 _nextStatus = Inactive; 92 std::string policy = params->smtCommitPolicy; 93 --- 1283 unchanged lines hidden --- |