registers.hh (10935:acd48ddd725f) registers.hh (12104:edd63f9c6184)
1/*
2 * Copyright (c) 2010-2011, 2014 ARM Limited
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

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

53
54// For a predicated instruction, we need all the
55// destination registers to also be sources
56const int MaxInstSrcRegs = ArmISAInst::MaxInstDestRegs +
57 ArmISAInst::MaxInstSrcRegs;
58using ArmISAInst::MaxInstDestRegs;
59using ArmISAInst::MaxMiscDestRegs;
60
1/*
2 * Copyright (c) 2010-2011, 2014 ARM Limited
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

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

53
54// For a predicated instruction, we need all the
55// destination registers to also be sources
56const int MaxInstSrcRegs = ArmISAInst::MaxInstDestRegs +
57 ArmISAInst::MaxInstSrcRegs;
58using ArmISAInst::MaxInstDestRegs;
59using ArmISAInst::MaxMiscDestRegs;
60
61typedef uint16_t RegIndex;
62
63typedef uint64_t IntReg;
64
65// floating point register file entry type
66typedef uint32_t FloatRegBits;
67typedef float FloatReg;
68
69// cop-0/cop-1 system control register
70typedef uint64_t MiscReg;

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

104const int PCReg = INTREG_PC;
105
106const int ZeroReg = INTREG_ZERO;
107
108const int SyscallNumReg = ReturnValueReg;
109const int SyscallPseudoReturnReg = ReturnValueReg;
110const int SyscallSuccessReg = ReturnValueReg;
111
61typedef uint64_t IntReg;
62
63// floating point register file entry type
64typedef uint32_t FloatRegBits;
65typedef float FloatReg;
66
67// cop-0/cop-1 system control register
68typedef uint64_t MiscReg;

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

102const int PCReg = INTREG_PC;
103
104const int ZeroReg = INTREG_ZERO;
105
106const int SyscallNumReg = ReturnValueReg;
107const int SyscallPseudoReturnReg = ReturnValueReg;
108const int SyscallSuccessReg = ReturnValueReg;
109
112// These help enumerate all the registers for dependence tracking.
113const int FP_Reg_Base = NumIntRegs * (MODE_MAXMODE + 1);
114const int CC_Reg_Base = FP_Reg_Base + NumFloatRegs;
115const int Misc_Reg_Base = CC_Reg_Base + NumCCRegs;
116const int Max_Reg_Index = Misc_Reg_Base + NumMiscRegs;
117
118typedef union {
119 IntReg intreg;
120 FloatReg fpreg;
121 CCReg ccreg;
122 MiscReg ctrlreg;
123} AnyReg;
124
125} // namespace ArmISA
126
127#endif
110typedef union {
111 IntReg intreg;
112 FloatReg fpreg;
113 CCReg ccreg;
114 MiscReg ctrlreg;
115} AnyReg;
116
117} // namespace ArmISA
118
119#endif