isa_traits.hh (6227:a17798f2a52c) isa_traits.hh (6327:f6148086f997)
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;

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

123 mode_supervisor = 2, // supervisor (unused by unix)
124 mode_user = 3, // user mode
125 mode_number // number of modes
126};
127
128// Constants Related to the number of registers
129
130enum {
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;

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

123 mode_supervisor = 2, // supervisor (unused by unix)
124 mode_user = 3, // user mode
125 mode_number // number of modes
126};
127
128// Constants Related to the number of registers
129
130enum {
131 NumIntArchRegs = 32,
132 NumPALShadowRegs = 8,
133 NumFloatArchRegs = 32,
134 // @todo: Figure out what this number really should be.
135 NumMiscArchRegs = 77,
136
137 NumIntRegs = NumIntArchRegs + NumPALShadowRegs,
138 NumFloatRegs = NumFloatArchRegs,
139 NumMiscRegs = NumMiscArchRegs,
140
141 TotalNumRegs =
142 NumIntRegs + NumFloatRegs + NumMiscRegs + NumInternalProcRegs,
143
144 TotalDataRegs = NumIntRegs + NumFloatRegs,
145
146 // semantically meaningful register indices
147 ZeroReg = 31, // architecturally meaningful
148 // the rest of these depend on the ABI
149 StackPointerReg = 30,
150 GlobalPointerReg = 29,
151 ProcedureValueReg = 27,
152 ReturnAddressReg = 26,
153 ReturnValueReg = 0,

--- 25 unchanged lines hidden ---
131 // semantically meaningful register indices
132 ZeroReg = 31, // architecturally meaningful
133 // the rest of these depend on the ABI
134 StackPointerReg = 30,
135 GlobalPointerReg = 29,
136 ProcedureValueReg = 27,
137 ReturnAddressReg = 26,
138 ReturnValueReg = 0,

--- 25 unchanged lines hidden ---