inst_queue_impl.hh (9444:ab47fe7f03f0) | inst_queue_impl.hh (9920:028e4da64b42) |
---|---|
1/* 2 * Copyright (c) 2011-2012 ARM Limited | 1/* 2 * Copyright (c) 2011-2012 ARM Limited |
3 * Copyright (c) 2013 Advanced Micro Devices, Inc. |
|
3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 71 unchanged lines hidden (view full) --- 82template <class Impl> 83InstructionQueue<Impl>::InstructionQueue(O3CPU *cpu_ptr, IEW *iew_ptr, 84 DerivO3CPUParams *params) 85 : cpu(cpu_ptr), 86 iewStage(iew_ptr), 87 fuPool(params->fuPool), 88 numEntries(params->numIQEntries), 89 totalWidth(params->issueWidth), | 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), | |
92 commitToIEWDelay(params->commitToIEWDelay) 93{ 94 assert(fuPool); 95 96 numThreads = params->numThreads; 97 | 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 --- | 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 --- |