X86: Fix argument register indexing.
[gem5.git] / src / cpu / o3 / params.hh
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;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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 #ifndef __CPU_O3_PARAMS_HH__
32 #define __CPU_O3_PARAMS_HH__
33
34 #include "cpu/o3/cpu.hh"
35
36 //Forward declarations
37 class FUPool;
38
39 /**
40 * This file defines the parameters that will be used for the O3CPU.
41 * This must be defined externally so that the Impl can have a params class
42 * defined that it can pass to all of the individual stages.
43 */
44 class O3Params : public BaseO3CPU::Params
45 {
46 public:
47 unsigned activity;
48
49 //
50 // Pointers to key objects
51 //
52 #if !FULL_SYSTEM
53 std::vector<Process *> workload;
54 Process *process;
55 #endif // FULL_SYSTEM
56
57 BaseCPU *checker;
58
59 //
60 // Caches
61 //
62 // MemInterface *icacheInterface;
63 // MemInterface *dcacheInterface;
64
65 unsigned cachePorts;
66
67 //
68 // Fetch
69 //
70 unsigned decodeToFetchDelay;
71 unsigned renameToFetchDelay;
72 unsigned iewToFetchDelay;
73 unsigned commitToFetchDelay;
74 unsigned fetchWidth;
75
76 //
77 // Decode
78 //
79 unsigned renameToDecodeDelay;
80 unsigned iewToDecodeDelay;
81 unsigned commitToDecodeDelay;
82 unsigned fetchToDecodeDelay;
83 unsigned decodeWidth;
84
85 //
86 // Rename
87 //
88 unsigned iewToRenameDelay;
89 unsigned commitToRenameDelay;
90 unsigned decodeToRenameDelay;
91 unsigned renameWidth;
92
93 //
94 // IEW
95 //
96 unsigned commitToIEWDelay;
97 unsigned renameToIEWDelay;
98 unsigned issueToExecuteDelay;
99 unsigned dispatchWidth;
100 unsigned issueWidth;
101 unsigned wbWidth;
102 unsigned wbDepth;
103 FUPool *fuPool;
104
105 //
106 // Commit
107 //
108 unsigned iewToCommitDelay;
109 unsigned renameToROBDelay;
110 unsigned commitWidth;
111 unsigned squashWidth;
112 Tick trapLatency;
113 Tick fetchTrapLatency;
114
115 //
116 // Timebuffer sizes
117 //
118 unsigned backComSize;
119 unsigned forwardComSize;
120
121 //
122 // Branch predictor (BP, BTB, RAS)
123 //
124 std::string predType;
125 unsigned localPredictorSize;
126 unsigned localCtrBits;
127 unsigned localHistoryTableSize;
128 unsigned localHistoryBits;
129 unsigned globalPredictorSize;
130 unsigned globalCtrBits;
131 unsigned globalHistoryBits;
132 unsigned choicePredictorSize;
133 unsigned choiceCtrBits;
134
135 unsigned BTBEntries;
136 unsigned BTBTagSize;
137
138 unsigned RASSize;
139
140 //
141 // Load store queue
142 //
143 unsigned LQEntries;
144 unsigned SQEntries;
145
146 //
147 // Memory dependence
148 //
149 unsigned SSITSize;
150 unsigned LFSTSize;
151
152 //
153 // Miscellaneous
154 //
155 unsigned numPhysIntRegs;
156 unsigned numPhysFloatRegs;
157 unsigned numIQEntries;
158 unsigned numROBEntries;
159
160 //SMT Parameters
161 unsigned smtNumFetchingThreads;
162
163 std::string smtFetchPolicy;
164
165 std::string smtIQPolicy;
166 unsigned smtIQThreshold;
167
168 std::string smtLSQPolicy;
169 unsigned smtLSQThreshold;
170
171 std::string smtCommitPolicy;
172
173 std::string smtROBPolicy;
174 unsigned smtROBThreshold;
175
176 // Probably can get this from somewhere.
177 unsigned instShiftAmt;
178 };
179
180 #endif // __CPU_O3_ALPHA_PARAMS_HH__