gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dt_constants.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007 MIPS Technologies, Inc.
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: Jaidev Patwardhan
29  */
30 
31 #ifndef __ARCH_MIPS_DT_CONSTANTS_HH__
32 #define __ARCH_MIPS_DT_CONSTANTS_HH__
33 
34 #include "arch/mips/types.hh"
35 #include "base/bitunion.hh"
36 
37 namespace MipsISA
38 {
39 
40 BitUnion32(DebugReg)
41  Bitfield<31> dbd;
42  Bitfield<30> dm;
43  Bitfield<29> nodcr;
44  Bitfield<28> lsnm;
45  Bitfield<27> doze;
46  Bitfield<26> halt;
47  Bitfield<25> conutdm;
48  Bitfield<24> ibusep;
49  Bitfield<23> mcheckep;
50  Bitfield<22> cacheep;
51  Bitfield<21> dbusep;
52  Bitfield<20, 19> iexi;
53  Bitfield<19> ddbsImpr;
54  Bitfield<18> ddblImpr;
55  SubBitUnion(ejtagVer, 17, 15)
56  Bitfield<17> ejtagVer2;
57  Bitfield<16> ejtagVer1;
58  Bitfield<15> ejtagVer0;
59  EndSubBitUnion(ejtagVer)
60  Bitfield<14, 10> dexcCode;
61  Bitfield<9> nosst;
62  Bitfield<8> sst;
63  Bitfield<7> offline;
64  Bitfield<6> dibimpr;
65  Bitfield<5> dint;
66  Bitfield<4> dib;
67  Bitfield<3> ddbs;
68  Bitfield<2> ddbl;
69  Bitfield<1> dbp;
70  Bitfield<0> dss;
71 EndBitUnion(DebugReg)
72 
73 BitUnion32(TraceControlReg)
74  Bitfield<31> ts;
75  Bitfield<30> ut;
76  Bitfield<27> tb;
77  Bitfield<26> io;
78  Bitfield<25> d;
79  Bitfield<24> e;
80  Bitfield<23> k;
81  Bitfield<22> s;
82  Bitfield<21> u;
83  Bitfield<20, 13> asidM;
84  Bitfield<12, 5> asid;
85  Bitfield<4> g;
86  Bitfield<3> tfcr;
87  Bitfield<2> tlsm;
88  Bitfield<1> tim;
89  Bitfield<0> on;
90 EndBitUnion(TraceControlReg)
91 
92 BitUnion32(TraceControl2Reg)
93  Bitfield<29> cpuidv;
94  Bitfield<28, 21> cpuid;
95  Bitfield<20> tcv;
96  Bitfield<19, 12> tcnum;
97  Bitfield<11, 7> mode;
98  Bitfield<6, 5> validModes;
99  Bitfield<4> tbi;
100  Bitfield<3> tbu;
101  Bitfield<2, 0> syp;
102 EndBitUnion(TraceControl2Reg)
103 
104 BitUnion32(TraceBPCReg)
105  Bitfield<31> mb;
106  Bitfield<28> e;
107  Bitfield<27> ate;
108  Bitfield<26, 24> bpc8;
109  Bitfield<23, 21> bpc7;
110  Bitfield<20, 18> bpc6;
111  Bitfield<17, 15> bpc5;
112  Bitfield<14, 12> bpc4;
113  Bitfield<11, 9> bpc3;
114  Bitfield<8, 6> bpc2;
115  Bitfield<5, 3> bpc1;
116  Bitfield<2, 0> bpc0;
117 EndBitUnion(TraceBPCReg)
118 
119 BitUnion32(TraceBPC2Reg)
120  Bitfield<17, 15> bpc14;
121  Bitfield<14, 12> bpc13;
122  Bitfield<11, 9> bpc12;
123  Bitfield<8, 6> bpc11;
124  Bitfield<5, 3> bpc10;
125  Bitfield<2, 0> bpc9;
126 EndBitUnion(TraceBPC2Reg)
127 
128 BitUnion32(Debug2Reg)
129  Bitfield<3> prm;
130  Bitfield<2> dq;
131  Bitfield<1> tup;
132  Bitfield<0> paco;
133 EndBitUnion(Debug2Reg)
134 } // namespace MipsISA
135 
136 #endif
Bitfield< 27 > tb
Definition: dt_constants.hh:76
Bitfield< 20 > tcv
Definition: dt_constants.hh:95
Bitfield< 15 > ejtagVer0
Definition: dt_constants.hh:58
Bitfield< 21 > dbusep
Definition: dt_constants.hh:51
Bitfield< 7 > offline
Definition: dt_constants.hh:63
Bitfield< 2, 0 > bpc0
Bitfield< 30 > ut
Definition: dt_constants.hh:75
Bitfield< 23 > mcheckep
Definition: dt_constants.hh:49
Bitfield< 29 > nodcr
Definition: dt_constants.hh:43
Bitfield< 14, 12 > bpc4
Bitfield< 8 > sst
Definition: dt_constants.hh:62
Bitfield< 17, 15 > bpc5
BitUnion32(DebugReg) Bitfield< 31 > dbd
Bitfield< 14, 12 > bpc13
Bitfield< 27 > ate
Bitfield< 19 > ddbsImpr
Definition: dt_constants.hh:53
Bitfield< 20, 19 > iexi
Definition: dt_constants.hh:52
Bitfield< 3 > tfcr
Definition: dt_constants.hh:86
Bitfield< 28, 21 > cpuid
Definition: dt_constants.hh:94
Bitfield< 26 > io
Definition: dt_constants.hh:77
Bitfield< 5, 3 > bpc1
Bitfield< 1 > tup
Bitfield< 28 > lsnm
Definition: dt_constants.hh:44
Bitfield< 24 > e
Definition: dt_constants.hh:79
Bitfield< 6, 5 > validModes
Definition: dt_constants.hh:98
Bitfield< 3 > tbu
Bitfield< 2, 0 > syp
EndBitUnion(DebugReg) BitUnion32(TraceControlReg) Bitfield< 31 > ts
Bitfield< 4 > g
Definition: dt_constants.hh:85
Bitfield< 1 > dbp
Definition: dt_constants.hh:69
Bitfield< 19, 12 > tcnum
Definition: dt_constants.hh:96
Bitfield< 20, 13 > asidM
Definition: dt_constants.hh:83
Bitfield< 5 > dint
Definition: dt_constants.hh:65
SubBitUnion(ejtagVer, 17, 15) Bitfield< 17 > ejtagVer2
Bitfield< 2 > ddbl
Definition: dt_constants.hh:68
Bitfield< 23 > k
Definition: dt_constants.hh:80
Bitfield< 16 > ejtagVer1
Definition: dt_constants.hh:57
Bitfield< 21 > u
Definition: dt_constants.hh:82
Bitfield< 25 > conutdm
Definition: dt_constants.hh:47
Bitfield< 27 > doze
Definition: dt_constants.hh:45
Bitfield< 18 > ddblImpr
Definition: dt_constants.hh:54
Bitfield< 26, 24 > bpc8
Bitfield< 4 > tbi
Definition: dt_constants.hh:99
Bitfield< 9 > nosst
Definition: dt_constants.hh:61
Bitfield< 11, 9 > bpc12
EndSubBitUnion(ejtagVer) Bitfield< 14
Bitfield< 24 > ibusep
Definition: dt_constants.hh:48
Bitfield< 10, 6 > mb
Definition: types.hh:51
Bitfield< 2 > tlsm
Definition: dt_constants.hh:87
Bitfield< 1 > tim
Definition: dt_constants.hh:88
Bitfield< 5, 3 > bpc10
Bitfield< 20, 18 > bpc6
Bitfield< 11, 7 > mode
Definition: dt_constants.hh:97
Bitfield< 2 > dq
Bitfield< 8, 6 > bpc11
Bitfield< 12, 5 > asid
Definition: dt_constants.hh:84
Bitfield< 11, 9 > bpc3
Bitfield< 22 > cacheep
Definition: dt_constants.hh:50
Bitfield< 25 > d
Definition: dt_constants.hh:78
Bitfield< 8, 6 > bpc2
Bitfield< 0 > paco
Bitfield< 21 > ts
Bitfield< 2, 0 > bpc9
Bitfield< 30 > dm
Definition: dt_constants.hh:42
Bitfield< 0 > dss
Definition: dt_constants.hh:70
Bitfield< 3 > ddbs
Definition: dt_constants.hh:67
Bitfield< 22 > s
Definition: dt_constants.hh:81
Bitfield< 23, 21 > bpc7
Bitfield< 4 > dib
Definition: dt_constants.hh:66
Bitfield< 26 > halt
Definition: dt_constants.hh:46
Bitfield< 0 > on
Definition: dt_constants.hh:89
Bitfield< 6 > dibimpr
Definition: dt_constants.hh:64

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