gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
miscregs.hh
Go to the documentation of this file.
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;
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_MISCREGS_HH__
33 #define __ARCH_SPARC_MISCREGS_HH__
34 
35 #include "base/bitunion.hh"
36 #include "base/types.hh"
37 
38 namespace SparcISA
39 {
41 {
43 // MISCREG_Y,
44 // MISCREG_CCR,
53  MISCREG_SOFTINT, /* 10 */
57 
65  MISCREG_PSTATE, /* 20 */
69 // MISCREG_CANSAVE,
70 // MISCREG_CANRESTORE,
71 // MISCREG_CLEANWIN,
72 // MISCREG_OTHERWIN,
73 // MISCREG_WSTATE,
75 
77  MISCREG_HPSTATE, /* 30 */
84 
87 
93 
103 
104  /* CPU Queue Registers */
113 
114  /* All the data for the TLB packed up in one register. */
117 };
118 
119 BitUnion64(HPSTATE)
120  Bitfield<0> tlz;
121  Bitfield<2> hpriv;
122  Bitfield<5> red;
123  Bitfield<10> ibe;
124  Bitfield<11> id; // this impl. dependent (id) field m
125 EndBitUnion(HPSTATE)
126 
127 BitUnion16(PSTATE)
128  Bitfield<1> ie;
129  Bitfield<2> priv;
130  Bitfield<3> am;
131  Bitfield<4> pef;
132  Bitfield<7, 6> mm;
133  Bitfield<8> tle;
134  Bitfield<9> cle;
135  Bitfield<10> pid0;
136  Bitfield<11> pid1;
137 EndBitUnion(PSTATE)
138 
139 struct STS
140 {
141  const static int st_idle = 0x00;
142  const static int st_wait = 0x01;
143  const static int st_halt = 0x02;
144  const static int st_run = 0x05;
145  const static int st_spec_run = 0x07;
146  const static int st_spec_rdy = 0x13;
147  const static int st_ready = 0x19;
148  const static int active = 0x01;
149  const static int speculative = 0x04;
150  const static int shft_id = 8;
151  const static int shft_fsm0 = 31;
152  const static int shft_fsm1 = 26;
153  const static int shft_fsm2 = 21;
154  const static int shft_fsm3 = 16;
155 };
156 
157 
159 
160 }
161 
162 #endif
Bitfield< 0 > ie
const int NumMiscRegs
Definition: miscregs.hh:158
Bitfield< 3 > am
Definition: miscregs.hh:130
MMU Internal Registers.
Definition: miscregs.hh:89
MiscRegIndex
Definition: miscregs.hh:40
Bitfield< 2 > hpriv
Definition: miscregs.hh:121
Hyper privileged registers.
Definition: miscregs.hh:77
EndBitUnion(HPSTATE) BitUnion16(PSTATE) Bitfield< 1 > ie
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
#define BitUnion16(name)
Definition: bitunion.hh:329
Ancillary State Registers.
Definition: miscregs.hh:45
Privilged Registers.
Definition: miscregs.hh:59
Scratchpad regiscers.
Definition: miscregs.hh:95
Bitfield< 10 > ibe
Definition: miscregs.hh:123
Bitfield< 4 > pef
Definition: miscregs.hh:131
BitUnion64(HPSTATE) Bitfield< 0 > tlz
Bitfield< 5 > red
Definition: miscregs.hh:122
Bitfield< 2 > priv
Definition: miscregs.hh:129
Bitfield< 7, 6 > mm
Definition: miscregs.hh:132
Bitfield< 9 > cle
Definition: miscregs.hh:134
Bitfield< 10 > pid0
Definition: miscregs.hh:135
Bitfield< 11 > pid1
Definition: miscregs.hh:136
Bitfield< 8 > tle
Definition: miscregs.hh:133
Floating Point Status Register.
Definition: miscregs.hh:86

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