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

Generated on Tue Sep 21 2021 12:24:47 for gem5 by doxygen 1.8.17