gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
asi.hh
Go to the documentation of this file.
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;
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  * Ali Saidi
30  */
31 
32 #ifndef __ARCH_SPARC_ASI_HH__
33 #define __ARCH_SPARC_ASI_HH__
34 
35 namespace SparcISA
36 {
37 
38 enum ASI {
39  ASI_IMPLICIT = 0x00,
40  /* Priveleged ASIs */
41  // 0x00-0x03 implementation dependent
42  ASI_NUCLEUS = 0x4,
43  ASI_N = 0x4,
44  // 0x05-0x0B implementation dependent
45  ASI_NL = 0xC,
47  // 0x0D-0x0F implementation dependent
48  ASI_AIUP = 0x10,
50  ASI_AIUS = 0x11,
52  // 0x12-0x13 implementation dependent
53  ASI_REAL = 0x14,
54  ASI_REAL_IO = 0x15,
55  ASI_BLK_AIUP = 0x16,
57  ASI_BLK_AIUS = 0x17,
59  ASI_AIUP_L = 0x18,
61  ASI_AIUS_L = 0x19,
63  // 0x1A-0x1B implementation dependent
64  ASI_REAL_L = 0x1C,
66  ASI_REAL_IO_L = 0x1D,
73  ASI_MMU = 0x21,
74  ASI_LDTX_AIUP = 0x22,
76  ASI_LDTX_AIUS = 0x23,
78  ASI_QUAD_LDD = 0x24,
79  ASI_QUEUE = 0x25,
82  ASI_LDTX_N = 0x27,
86  // 0x28-0x29 implementation dependent
95  ASI_LTX_L = 0x2C,
97  // 0x2D implementation dependent
100  ASI_LDTX_NL = 0x2F,
102  // 0x20 implementation dependent
106  // 0x34 implementation dependent
110  // 0x38 implementation dependent
114  // 0x3C implementation dependent
120  // 0x41 implementation dependent
124  // 0x43 implementation dependent
137  ASI_IMMU = 0x50,
140  // 0x53 implementation dependent
145  ASI_DMMU = 0x58,
154  // 0x61-0x62 implementation dependent
156  // 0x64-0x65 implementation dependent
159  // 0x68-0x71 implementation dependent
163  // 0x74-0x7F reserved
164  /* Unpriveleged ASIs */
165  ASI_P = 0x80,
167  ASI_S = 0x81,
169  ASI_PNF = 0x82,
171  ASI_SNF = 0x83,
173  // 0x84-0x87 reserved
174  ASI_PL = 0x88,
176  ASI_SL = 0x89,
178  ASI_PNFL = 0x8A,
180  ASI_SNFL = 0x8B,
182  // 0x8C-0xBF reserved
183  ASI_PST8_P = 0xC0,
185  ASI_PST8_S = 0xC1,
187  ASI_PST16_P = 0xC2,
189  ASI_PST16_S = 0xC3,
191  ASI_PST32_P = 0xC4,
193  ASI_PST32_S = 0xC5,
195  // 0xC6-0xC7 implementation dependent
196  ASI_PST8_PL = 0xC8,
198  ASI_PST8_SL = 0xC9,
200  ASI_PST16_PL = 0xCA,
202  ASI_PST16_SL = 0xCB,
204  ASI_PST32_PL = 0xCC,
206  ASI_PST32_SL = 0xCD,
208  // 0xCE-0xCF implementation dependent
209  ASI_FL8_P = 0xD0,
211  ASI_FL8_S = 0xD1,
213  ASI_FL16_P = 0xD2,
215  ASI_FL16_S = 0xD3,
217  // 0xD4-0xD7 implementation dependent
218  ASI_FL8_PL = 0xD8,
220  ASI_FL8_SL = 0xD9,
222  ASI_FL16_PL = 0xDA,
224  ASI_FL16_SL = 0xDB,
226  // 0xDC-0xDF implementation dependent
227  // 0xE0-0xE1 reserved
228  ASI_LDTX_P = 0xE2,
230  ASI_LDTX_S = 0xE3,
232  // 0xE4-0xE9 implementation dependent
233  ASI_LDTX_PL = 0xEA,
235  ASI_LDTX_SL = 0xEB,
237  // 0xEC-0xEF implementation dependent
238  ASI_BLK_P = 0xF0,
240  ASI_BLK_S = 0xF1,
242  // 0xF2-0xF7 implementation dependent
243  ASI_BLK_PL = 0xF8,
245  ASI_BLK_SL = 0xF9,
247  // 0xFA-0xFF implementation dependent
248  MAX_ASI = 0xFF
249 };
250 
251 // Functions that classify an asi
252 bool asiIsBlock(ASI);
253 bool asiIsPrimary(ASI);
254 bool asiIsSecondary(ASI);
255 bool asiIsNucleus(ASI);
256 bool asiIsAsIfUser(ASI);
257 bool asiIsIO(ASI);
258 bool asiIsReal(ASI);
259 bool asiIsLittle(ASI);
260 bool asiIsTwin(ASI);
261 bool asiIsPartialStore(ASI);
262 bool asiIsFloatingLoad(ASI);
263 bool asiIsNoFault(ASI);
264 bool asiIsScratchPad(ASI);
265 bool asiIsCmt(ASI);
266 bool asiIsQueue(ASI);
267 bool asiIsDtlb(ASI);
268 bool asiIsMmu(ASI);
269 bool asiIsUnPriv(ASI);
270 bool asiIsPriv(ASI);
271 bool asiIsHPriv(ASI);
272 bool asiIsReg(ASI);
273 bool asiIsInterrupt(ASI);
274 bool asiIsSparcError(ASI);
275 };
276 
277 #endif // __ARCH_SPARC_ASI_HH__
bool asiIsDtlb(ASI)
bool asiIsReal(ASI asi)
Definition: asi.cc:142
bool asiIsSparcError(ASI asi)
Definition: asi.cc:312
bool asiIsFloatingLoad(ASI asi)
Definition: asi.cc:220
bool asiIsPriv(ASI asi)
Definition: asi.cc:291
bool asiIsIO(ASI asi)
Definition: asi.cc:135
bool asiIsQueue(ASI asi)
Definition: asi.cc:256
bool asiIsPrimary(ASI asi)
Definition: asi.cc:51
bool asiIsBlock(ASI asi)
Definition: asi.cc:38
bool asiIsReg(ASI asi)
Definition: asi.cc:304
bool asiIsHPriv(ASI asi)
Definition: asi.cc:298
bool asiIsScratchPad(ASI asi)
Definition: asi.cc:242
bool asiIsNoFault(ASI asi)
Definition: asi.cc:233
bool asiIsUnPriv(ASI asi)
Definition: asi.cc:285
bool asiIsCmt(ASI asi)
Definition: asi.cc:249
bool asiIsTwin(ASI asi)
Definition: asi.cc:188
bool asiIsInterrupt(ASI asi)
Definition: asi.cc:262
bool asiIsMmu(ASI asi)
Definition: asi.cc:270
bool asiIsAsIfUser(ASI asi)
Definition: asi.cc:118
bool asiIsLittle(ASI asi)
Definition: asi.cc:153
bool asiIsNucleus(ASI asi)
Definition: asi.cc:109
bool asiIsSecondary(ASI asi)
Definition: asi.cc:80
ASI
Definition: asi.hh:38
bool asiIsPartialStore(ASI asi)
Definition: asi.cc:203

Generated on Fri Jun 9 2017 13:03:40 for gem5 by doxygen 1.8.6