gem5  v22.1.0.0
int.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 The University of Edinburgh
3  * Copyright (c) 2021 IBM Corporation
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are
8  * met: redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer;
10  * redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution;
13  * neither the name of the copyright holders nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 #ifndef __ARCH_POWER_REGS_INT_HH__
31 #define __ARCH_POWER_REGS_INT_HH__
32 
33 #include "cpu/reg_class.hh"
34 #include "debug/IntRegs.hh"
35 
36 namespace gem5
37 {
38 
39 namespace PowerISA
40 {
41 
42 namespace int_reg
43 {
44 
45 enum : RegIndex
46 {
79 
81 
92 
93  NumRegs
94 };
95 
96 } // namespace int_reg
97 
99  int_reg::NumRegs, debug::IntRegs);
100 
101 namespace int_reg
102 {
103 
104 inline constexpr RegId
137 
148 
149 } // namespace int_reg
150 
151 // Semantically meaningful register indices
152 inline constexpr auto
163 
164 } // namespace PowerISA
165 } // namespace gem5
166 
167 #endif // __ARCH_POWER_REGS_INT_HH__
Register ID: describe an architectural register with its class and index.
Definition: reg_class.hh:91
constexpr RegId Msr
Definition: int.hh:144
constexpr RegId Lr
Definition: int.hh:140
constexpr RegId R31
Definition: int.hh:136
constexpr RegId R24
Definition: int.hh:129
constexpr RegId R18
Definition: int.hh:123
constexpr RegId R22
Definition: int.hh:127
constexpr RegId Ctr
Definition: int.hh:141
constexpr RegId RsvAddr
Definition: int.hh:147
constexpr RegId R29
Definition: int.hh:134
constexpr RegId R10
Definition: int.hh:115
constexpr RegId RsvLen
Definition: int.hh:146
constexpr RegId R2
Definition: int.hh:107
constexpr RegId R25
Definition: int.hh:130
constexpr RegId R7
Definition: int.hh:112
constexpr RegId R1
Definition: int.hh:106
constexpr RegId R17
Definition: int.hh:122
constexpr RegId R8
Definition: int.hh:113
constexpr RegId Xer
Definition: int.hh:139
constexpr RegId R4
Definition: int.hh:109
constexpr RegId R21
Definition: int.hh:126
constexpr RegId Tar
Definition: int.hh:142
constexpr RegId R19
Definition: int.hh:124
constexpr RegId R20
Definition: int.hh:125
constexpr RegId R0
Definition: int.hh:105
constexpr RegId R28
Definition: int.hh:133
constexpr RegId R12
Definition: int.hh:117
constexpr RegId Rsv
Definition: int.hh:145
constexpr RegId R5
Definition: int.hh:110
constexpr RegId R3
Definition: int.hh:108
constexpr RegId R16
Definition: int.hh:121
constexpr RegId Cr
Definition: int.hh:138
constexpr RegId R9
Definition: int.hh:114
constexpr RegId R23
Definition: int.hh:128
constexpr RegId R11
Definition: int.hh:116
constexpr RegId R14
Definition: int.hh:119
constexpr RegId R6
Definition: int.hh:111
constexpr RegId R13
Definition: int.hh:118
constexpr RegId R15
Definition: int.hh:120
constexpr RegId R30
Definition: int.hh:135
constexpr RegId R26
Definition: int.hh:131
constexpr RegId Fpscr
Definition: int.hh:143
constexpr RegId R27
Definition: int.hh:132
constexpr auto & ArgumentReg2
Definition: int.hh:156
constexpr RegClass intRegClass(IntRegClass, IntRegClassName, int_reg::NumRegs, debug::IntRegs)
constexpr auto & ArgumentReg1
Definition: int.hh:155
constexpr auto & ReturnValueReg
Definition: int.hh:153
constexpr auto & TOCPointerReg
Definition: int.hh:161
constexpr auto & StackPointerReg
Definition: int.hh:160
constexpr auto & ThreadPointerReg
Definition: int.hh:162
constexpr auto & ArgumentReg3
Definition: int.hh:157
constexpr auto & ArgumentReg0
Definition: int.hh:154
constexpr auto & ArgumentReg5
Definition: int.hh:159
constexpr auto & ArgumentReg4
Definition: int.hh:158
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
uint16_t RegIndex
Definition: types.hh:176
constexpr char IntRegClassName[]
Definition: reg_class.hh:73
@ IntRegClass
Integer register.
Definition: reg_class.hh:60

Generated on Wed Dec 21 2022 10:22:26 for gem5 by doxygen 1.9.1