asi.hh (3063:479e32cdcdf6) asi.hh (3123:34edfd0ff545)
1/*
2 * Copyright (c) 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;

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

151 ASI_PST16_PRIMARY_LITTLE = ASI_PST16_PL,
152 ASI_PST16_SL = 0xCB,
153 ASI_PST16_SECONDARY_LITTLE = ASI_PST16_SL,
154 ASI_PST32_PL = 0xCC,
155 ASI_PST32_PRIMARY_LITTLE = ASI_PST32_PL,
156 ASI_PST32_SL = 0xCD,
157 ASI_PST32_SECONDARY_LITTLE = ASI_PST32_SL,
158 //0xCE-0xCF implementation dependent
1/*
2 * Copyright (c) 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;

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

151 ASI_PST16_PRIMARY_LITTLE = ASI_PST16_PL,
152 ASI_PST16_SL = 0xCB,
153 ASI_PST16_SECONDARY_LITTLE = ASI_PST16_SL,
154 ASI_PST32_PL = 0xCC,
155 ASI_PST32_PRIMARY_LITTLE = ASI_PST32_PL,
156 ASI_PST32_SL = 0xCD,
157 ASI_PST32_SECONDARY_LITTLE = ASI_PST32_SL,
158 //0xCE-0xCF implementation dependent
159 ASI_PL8_P = 0xD0,
160 ASI_PL8_PRIMARY = ASI_PL8_P,
161 ASI_PL8_S = 0xD1,
162 ASI_PL8_SECONDARY = ASI_PL8_S,
163 ASI_PL16_P = 0xD2,
164 ASI_PL16_PRIMARY = ASI_PL16_P,
165 ASI_PL16_S = 0xD3,
166 ASI_PL16_SECONDARY = ASI_PL16_S,
159 ASI_FL8_P = 0xD0,
160 ASI_FL8_PRIMARY = ASI_FL8_P,
161 ASI_FL8_S = 0xD1,
162 ASI_FL8_SECONDARY = ASI_FL8_S,
163 ASI_FL16_P = 0xD2,
164 ASI_FL16_PRIMARY = ASI_FL16_P,
165 ASI_FL16_S = 0xD3,
166 ASI_FL16_SECONDARY = ASI_FL16_S,
167 //0xD4-0xD7 implementation dependent
167 //0xD4-0xD7 implementation dependent
168 ASI_PL8_PL = 0xD8,
169 ASI_PL8_PRIMARY_LITTLE = ASI_PL8_PL,
170 ASI_PL8_SL = 0xD9,
171 ASI_PL8_SECONDARY_LITTLE = ASI_PL8_SL,
172 ASI_PL16_PL = 0xDA,
173 ASI_PL16_PRIMARY_LITTLE = ASI_PL16_PL,
174 ASI_PL16_SL = 0xDB,
175 ASI_PL16_SECONDARY_LITTLE = ASI_PL16_SL,
168 ASI_FL8_PL = 0xD8,
169 ASI_FL8_PRIMARY_LITTLE = ASI_FL8_PL,
170 ASI_FL8_SL = 0xD9,
171 ASI_FL8_SECONDARY_LITTLE = ASI_FL8_SL,
172 ASI_FL16_PL = 0xDA,
173 ASI_FL16_PRIMARY_LITTLE = ASI_FL16_PL,
174 ASI_FL16_SL = 0xDB,
175 ASI_FL16_SECONDARY_LITTLE = ASI_FL16_SL,
176 //0xDC-0xDF implementation dependent
177 //0xE0-0xE1 reserved
178 ASI_LDTX_P = 0xE2,
179 ASI_LD_TWINX_PRIMARY = ASI_LDTX_P,
180 ASI_LDTX_S = 0xE3,
181 ASI_LD_TWINX_SECONDARY = ASI_LDTX_S,
182 //0xE4-0xE9 implementation dependent
183 ASI_LDTX_PL = 0xEA,

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

188 ASI_BLK_P = 0xF0,
189 ASI_BLOCK_PRIMARY = ASI_BLK_P,
190 ASI_BLK_S = 0xF1,
191 ASI_BLOCK_SECONDARY = ASI_BLK_S,
192 //0xF2-0xF7 implementation dependent
193 ASI_BLK_PL = 0xF8,
194 ASI_BLOCK_PRIMARY_LITTLE = ASI_BLK_PL,
195 ASI_BLK_SL = 0xF9,
176 //0xDC-0xDF implementation dependent
177 //0xE0-0xE1 reserved
178 ASI_LDTX_P = 0xE2,
179 ASI_LD_TWINX_PRIMARY = ASI_LDTX_P,
180 ASI_LDTX_S = 0xE3,
181 ASI_LD_TWINX_SECONDARY = ASI_LDTX_S,
182 //0xE4-0xE9 implementation dependent
183 ASI_LDTX_PL = 0xEA,

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

188 ASI_BLK_P = 0xF0,
189 ASI_BLOCK_PRIMARY = ASI_BLK_P,
190 ASI_BLK_S = 0xF1,
191 ASI_BLOCK_SECONDARY = ASI_BLK_S,
192 //0xF2-0xF7 implementation dependent
193 ASI_BLK_PL = 0xF8,
194 ASI_BLOCK_PRIMARY_LITTLE = ASI_BLK_PL,
195 ASI_BLK_SL = 0xF9,
196 ASI_BLOCK_SECONDARY_LITTLE = ASI_BLK_SL
196 ASI_BLOCK_SECONDARY_LITTLE = ASI_BLK_SL,
197 //0xFA-0xFF implementation dependent
197 //0xFA-0xFF implementation dependent
198 MAX_ASI = 0xFF
198 };
199 };
200
201 //Functions that classify an asi
202 bool AsiIsBlock(ASI);
203 bool AsiIsPrimary(ASI);
204 bool AsiIsSecondary(ASI);
205 bool AsiIsNucleus(ASI);
206 bool AsiIsAsIfUser(ASI);
207 bool AsiIsIO(ASI);
208 bool AsiIsReal(ASI);
209 bool AsiIsLittle(ASI);
210 bool AsiIsTwin(ASI);
211 bool AsiIsPartialStore(ASI);
212 bool AsiIsFloatingLoad(ASI);
213 bool AsiIsNoFault(ASI);
214 bool AsiIsScratchPad(ASI);
215 bool AsiIsCmt(ASI);
216 bool AsiIsQueue(ASI);
217 bool AsiIsDtlb(ASI);
218 bool AsiIsMmu(ASI);
219
199};
200
201#endif // __ARCH_SPARC_TLB_HH__
220};
221
222#endif // __ARCH_SPARC_TLB_HH__