1/*
2 * Copyright (c) 2011-2012 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating
9 * to a hardware implementation of the functionality of the software
10 * licensed hereunder. You may use the software subject to the license
11 * terms below provided that you ensure that this notice is replicated

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

83template <class Impl>
84InstructionQueue<Impl>::InstructionQueue(O3CPU *cpu_ptr, IEW *iew_ptr,
85 DerivO3CPUParams *params)
86 : cpu(cpu_ptr),
87 iewStage(iew_ptr),
88 fuPool(params->fuPool),
89 numEntries(params->numIQEntries),
90 totalWidth(params->issueWidth),
90 numPhysIntRegs(params->numPhysIntRegs),
91 numPhysFloatRegs(params->numPhysFloatRegs),
91 commitToIEWDelay(params->commitToIEWDelay)
92{
93 assert(fuPool);
94
95 numThreads = params->numThreads;
96
98 // Set the number of physical registers as the number of int + float
99 numPhysRegs = numPhysIntRegs + numPhysFloatRegs;
97 // Set the number of total physical registers
98 numPhysRegs = params->numPhysIntRegs + params->numPhysFloatRegs +
99 params->numPhysCCRegs;
100
101 //Create an entry for each physical register within the
102 //dependency graph.
103 dependGraph.resize(numPhysRegs);
104
105 // Resize the register scoreboard.
106 regScoreboard.resize(numPhysRegs);
107

--- 1403 unchanged lines hidden ---