decode_impl.hh (4636:afc8da9f526e) decode_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;

--- 16 unchanged lines hidden (view full) ---

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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
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;

--- 16 unchanged lines hidden (view full) ---

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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
33#include "params/DerivO3CPU.hh"
34
33template<class Impl>
35template<class Impl>
34DefaultDecode::DefaultDecode(O3CPU *_cpu, Params *params)
36DefaultDecode<Impl>::DefaultDecode(O3CPU *_cpu, DerivO3CPUParams *params)
35 : cpu(_cpu),
36 renameToDecodeDelay(params->renameToDecodeDelay),
37 iewToDecodeDelay(params->iewToDecodeDelay),
38 commitToDecodeDelay(params->commitToDecodeDelay),
39 fetchToDecodeDelay(params->fetchToDecodeDelay),
40 decodeWidth(params->decodeWidth),
37 : cpu(_cpu),
38 renameToDecodeDelay(params->renameToDecodeDelay),
39 iewToDecodeDelay(params->iewToDecodeDelay),
40 commitToDecodeDelay(params->commitToDecodeDelay),
41 fetchToDecodeDelay(params->fetchToDecodeDelay),
42 decodeWidth(params->decodeWidth),
41 numThreads(params->numberOfThreads)
43 numThreads(params->numThreads)
42{
43 _status = Inactive;
44
45 // Setup status, make sure stall signals are clear.
46 for (int i = 0; i < numThreads; ++i) {
47 decodeStatus[i] = Idle;
48
49 stalls[i].rename = false;

--- 708 unchanged lines hidden ---
44{
45 _status = Inactive;
46
47 // Setup status, make sure stall signals are clear.
48 for (int i = 0; i < numThreads; ++i) {
49 decodeStatus[i] = Idle;
50
51 stalls[i].rename = false;

--- 708 unchanged lines hidden ---