decode_impl.hh (4318:eb4241362a80) | decode_impl.hh (4329:52057dbec096) |
---|---|
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; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Kevin Lim 29 */ 30 31#include "cpu/o3/decode.hh" 32 33template<class Impl> | 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; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Kevin Lim 29 */ 30 31#include "cpu/o3/decode.hh" 32 33template<class Impl> |
34DefaultDecode 35 : renameToDecodeDelay(params->renameToDecodeDelay), | 34DefaultDecode<Impl>::DefaultDecode(O3CPU *_cpu, Params *params) 35 : cpu(_cpu), 36 renameToDecodeDelay(params->renameToDecodeDelay), |
36 iewToDecodeDelay(params->iewToDecodeDelay), 37 commitToDecodeDelay(params->commitToDecodeDelay), 38 fetchToDecodeDelay(params->fetchToDecodeDelay), 39 decodeWidth(params->decodeWidth), 40 numThreads(params->numberOfThreads) 41{ 42 _status = Inactive; 43 --- 63 unchanged lines hidden (view full) --- 107 decodeSquashedInsts 108 .name(name() + ".DECODE:SquashedInsts") 109 .desc("Number of squashed instructions handled by decode") 110 .prereq(decodeSquashedInsts); 111} 112 113template<class Impl> 114void | 37 iewToDecodeDelay(params->iewToDecodeDelay), 38 commitToDecodeDelay(params->commitToDecodeDelay), 39 fetchToDecodeDelay(params->fetchToDecodeDelay), 40 decodeWidth(params->decodeWidth), 41 numThreads(params->numberOfThreads) 42{ 43 _status = Inactive; 44 --- 63 unchanged lines hidden (view full) --- 108 decodeSquashedInsts 109 .name(name() + ".DECODE:SquashedInsts") 110 .desc("Number of squashed instructions handled by decode") 111 .prereq(decodeSquashedInsts); 112} 113 114template<class Impl> 115void |
115DefaultDecode<Impl>::setCPU(O3CPU *cpu_ptr) 116{ 117 cpu = cpu_ptr; 118 DPRINTF(Decode, "Setting CPU pointer.\n"); 119} 120 121template<class Impl> 122void | |
123DefaultDecode<Impl>::setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr) 124{ 125 timeBuffer = tb_ptr; 126 127 // Setup wire to write information back to fetch. 128 toFetch = timeBuffer->getWire(0); 129 130 // Create wires to get information from proper places in time buffer. --- 695 unchanged lines hidden --- | 116DefaultDecode<Impl>::setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr) 117{ 118 timeBuffer = tb_ptr; 119 120 // Setup wire to write information back to fetch. 121 toFetch = timeBuffer->getWire(0); 122 123 // Create wires to get information from proper places in time buffer. --- 695 unchanged lines hidden --- |