gem5  v19.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
registers.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2005 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: Gabe Black
29  */
30 
31 #ifndef __ARCH_ALPHA_REGISTERS_HH__
32 #define __ARCH_ALPHA_REGISTERS_HH__
33 
34 #include "arch/alpha/generated/max_inst_regs.hh"
35 #include "arch/alpha/ipr.hh"
36 #include "arch/generic/types.hh"
38 #include "arch/generic/vec_reg.hh"
39 #include "base/types.hh"
40 
41 namespace AlphaISA {
42 
44 using AlphaISAInst::MaxInstDestRegs;
45 
46 // Locked read/write flags are can't be detected by the ISA parser
48 
49 // Not applicable to Alpha
56 
57 // Not applicable to Alpha
63 
65 {
72 };
73 
74 // semantically meaningful register indices
75 const RegIndex ZeroReg = 31; // architecturally meaningful
76 // the rest of these depend on the ABI
83 
88 
89 const int NumIntArchRegs = 32;
90 const int NumPALShadowRegs = 8;
91 const int NumFloatArchRegs = 32;
92 
93 const int NumIntRegs = NumIntArchRegs + NumPALShadowRegs;
95 const int NumVecRegs = 1; // Not applicable to Alpha
96  // (1 to prevent warnings)
97 const int NumVecPredRegs = 1; // Not applicable to Alpha
98  // (1 to prevent warnings)
99 const int NumCCRegs = 0;
101 
102 const int TotalNumRegs =
103  NumIntRegs + NumFloatRegs + NumMiscRegs;
104 
105 } // namespace AlphaISA
106 
107 #endif // __ARCH_ALPHA_REGFILE_HH__
const RegIndex SyscallNumReg
Definition: registers.hh:84
const RegIndex FirstArgumentReg
Definition: registers.hh:85
constexpr unsigned DummyNumVecElemPerVecReg
Definition: vec_reg.hh:664
Vector Register Abstraction This generic class is the model in a particularization of MVC...
Definition: vec_reg.hh:160
constexpr bool DummyVecPredRegHasPackedRepr
Dummy type aliases and constants for architectures that do not implement vector predicate registers...
const int NumFloatRegs
Definition: registers.hh:94
VecRegT< DummyVecElem, DummyNumVecElemPerVecReg, true > DummyConstVecReg
Definition: vec_reg.hh:666
uint32_t DummyVecElem
Dummy type aliases and constants for architectures that do not implement vector registers.
Definition: vec_reg.hh:663
const int MaxInstSrcRegs
Definition: registers.hh:59
const int NumVecPredRegs
Definition: registers.hh:97
DummyVecPredReg::Container DummyVecPredRegContainer
constexpr size_t DummyVecPredRegSizeBits
const int NumFloatArchRegs
Definition: registers.hh:91
const RegIndex ReturnAddressReg
Definition: registers.hh:80
const int MaxMiscDestRegs
Definition: registers.hh:47
const int MaxMiscDestRegs
Definition: registers.hh:70
Predicate register view.
Definition: vec_pred_reg.hh:70
uint16_t RegIndex
Definition: types.hh:42
const int NumCCRegs
Definition: registers.hh:99
constexpr size_t VecRegSizeBytes
Definition: registers.hh:55
const RegIndex ZeroReg
Definition: registers.hh:75
VecRegT< DummyVecElem, DummyNumVecElemPerVecReg, false > DummyVecReg
Definition: vec_reg.hh:665
DummyVecReg::Container DummyVecRegContainer
Definition: vec_reg.hh:667
const RegIndex StackPointerReg
Definition: registers.hh:77
const RegIndex SyscallPseudoReturnReg
Definition: registers.hh:86
const int NumPALShadowRegs
Definition: registers.hh:90
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
const int TotalNumRegs
Definition: registers.hh:102
constexpr size_t VecPredRegSizeBits
Definition: registers.hh:61
const int NumMiscRegs
Definition: registers.hh:100
const int NumIntArchRegs
Definition: registers.hh:89
const RegIndex ProcedureValueReg
Definition: registers.hh:79
VecPredRegT< DummyVecElem, DummyNumVecElemPerVecReg, DummyVecPredRegHasPackedRepr, true > DummyConstVecPredReg
Vector Registers layout specification.
Generic predicate register container.
Definition: vec_pred_reg.hh:51
VecPredRegT< DummyVecElem, DummyNumVecElemPerVecReg, DummyVecPredRegHasPackedRepr, false > DummyVecPredReg
const RegIndex FramePointerReg
Definition: registers.hh:82
constexpr bool VecPredRegHasPackedRepr
Definition: registers.hh:62
Vector Register Abstraction This generic class is a view in a particularization of MVC...
Definition: vec_reg.hh:174
::DummyVecElem VecElem
Definition: registers.hh:50
const RegIndex ReturnValueReg
Definition: registers.hh:81
constexpr unsigned NumVecElemPerVecReg
Definition: registers.hh:54
const RegIndex GlobalPointerReg
Definition: registers.hh:78
const RegIndex SyscallSuccessReg
Definition: registers.hh:87
const int NumVecRegs
Definition: registers.hh:95
const int NumIntRegs
Definition: registers.hh:93
constexpr size_t DummyVecRegSizeBytes
Definition: vec_reg.hh:668

Generated on Fri Feb 28 2020 16:26:56 for gem5 by doxygen 1.8.13