gem5  v20.1.0.0
mt_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_MT_CONSTANTS_HH__
30 #define __ARCH_MIPS_MT_CONSTANTS_HH__
31 
32 #include "arch/mips/types.hh"
33 #include "base/bitunion.hh"
34 
35 namespace MipsISA
36 {
37 
38 BitUnion32(MVPControlReg)
39  Bitfield<3> cpa;
40  Bitfield<2> stlb;
41  Bitfield<1> vpc;
42  Bitfield<0> evp;
43 EndBitUnion(MVPControlReg)
44 
45 BitUnion32(MVPConf0Reg)
46  Bitfield<31> m;
47  Bitfield<29> tlbs;
48  Bitfield<28> gs;
49  Bitfield<27> pcp;
50  Bitfield<25, 16> ptlbe;
51  Bitfield<15> tca;
52  Bitfield<13, 10> pvpe;
53  Bitfield<7, 0> ptc;
54 EndBitUnion(MVPConf0Reg)
55 
56 BitUnion32(VPEControlReg)
57  Bitfield<21> ysi;
58  Bitfield<18, 16> excpt;
59  Bitfield<15> te;
60  Bitfield<7, 0> targTC;
61 EndBitUnion(VPEControlReg)
62 
63 BitUnion32(VPEConf0Reg)
64  Bitfield<31> m;
65  Bitfield<28, 21> xtc;
66  Bitfield<19> tcs;
67  Bitfield<18> scs;
68  Bitfield<17> dcs;
69  Bitfield<16> ics;
70  Bitfield<1> mvp;
71  Bitfield<0> vpa;
72 EndBitUnion(VPEConf0Reg)
73 
74 BitUnion32(TCBindReg)
75  Bitfield<28, 21> curTC;
76  Bitfield<20, 18> a0;
77  Bitfield<17> tbe;
78  Bitfield<3, 0> curVPE;
79 EndBitUnion(TCBindReg)
80 
81 BitUnion32(TCStatusReg)
82  Bitfield<31, 28> tcu;
83  Bitfield<27> tmx;
84  Bitfield<24, 23> rnst;
85  Bitfield<21> tds;
86  Bitfield<20> dt;
87  Bitfield<19, 16> impl;
88  Bitfield<15> da;
89  Bitfield<13> a;
90  Bitfield<12, 11> tksu;
91  Bitfield<10> ixmt;
92  Bitfield<7, 0> asid;
93 EndBitUnion(TCStatusReg)
94 
95 BitUnion32(TCHaltReg)
96  Bitfield<0> h;
97 EndBitUnion(TCHaltReg)
98 
99 } // namespace MipsISA
100 
101 #endif
MipsISA::pvpe
Bitfield< 13, 10 > pvpe
Definition: mt_constants.hh:52
MipsISA::BitUnion32
BitUnion32(DebugReg) Bitfield< 31 > dbd
MipsISA::mvp
Bitfield< 1 > mvp
Definition: mt_constants.hh:70
MipsISA::te
Bitfield< 15 > te
Definition: mt_constants.hh:59
MipsISA::targTC
Bitfield< 7, 0 > targTC
Definition: mt_constants.hh:60
MipsISA::a0
Bitfield< 20, 18 > a0
Definition: mt_constants.hh:76
MipsISA::tksu
Bitfield< 12, 11 > tksu
Definition: mt_constants.hh:90
types.hh
MipsISA::scs
Bitfield< 18 > scs
Definition: mt_constants.hh:67
MipsISA::tlbs
Bitfield< 29 > tlbs
Definition: mt_constants.hh:47
MipsISA::vpa
Bitfield< 0 > vpa
Definition: mt_constants.hh:71
MipsISA::tmx
Bitfield< 27 > tmx
Definition: mt_constants.hh:83
MipsISA::gs
Bitfield< 28 > gs
Definition: mt_constants.hh:48
MipsISA::curTC
curTC
Definition: mt_constants.hh:75
MipsISA::dt
Bitfield< 20 > dt
Definition: mt_constants.hh:86
MipsISA::ixmt
Bitfield< 10 > ixmt
Definition: mt_constants.hh:91
MipsISA::EndBitUnion
EndBitUnion(DebugReg) BitUnion32(TraceControlReg) Bitfield< 31 > ts
MipsISA::excpt
Bitfield< 18, 16 > excpt
Definition: mt_constants.hh:58
MipsISA
Definition: decoder.cc:31
MipsISA::da
Bitfield< 15 > da
Definition: mt_constants.hh:88
MipsISA::stlb
Bitfield< 2 > stlb
Definition: mt_constants.hh:40
MipsISA::impl
Bitfield< 19, 16 > impl
Definition: mt_constants.hh:87
MipsISA::xtc
Bitfield< 28, 21 > xtc
Definition: mt_constants.hh:65
MipsISA::tds
Bitfield< 21 > tds
Definition: mt_constants.hh:85
MipsISA::curVPE
Bitfield< 3, 0 > curVPE
Definition: mt_constants.hh:78
bitunion.hh
MipsISA::evp
Bitfield< 0 > evp
Definition: mt_constants.hh:42
MipsISA::ptc
Bitfield< 7, 0 > ptc
Definition: mt_constants.hh:53
MipsISA::tcu
tcu
Definition: mt_constants.hh:82
MipsISA::tcs
Bitfield< 19 > tcs
Definition: mt_constants.hh:66
MipsISA::pcp
Bitfield< 27 > pcp
Definition: mt_constants.hh:49
MipsISA::ptlbe
Bitfield< 25, 16 > ptlbe
Definition: mt_constants.hh:50
MipsISA::dcs
Bitfield< 17 > dcs
Definition: mt_constants.hh:68
MipsISA::tbe
Bitfield< 17 > tbe
Definition: mt_constants.hh:77
MipsISA::a
Bitfield< 13 > a
Definition: mt_constants.hh:89
MipsISA::vpc
Bitfield< 1 > vpc
Definition: mt_constants.hh:41
MipsISA::rnst
Bitfield< 24, 23 > rnst
Definition: mt_constants.hh:84
MipsISA::asid
Bitfield< 12, 5 > asid
Definition: dt_constants.hh:82
ArmISA::m
Bitfield< 0 > m
Definition: miscregs_types.hh:389
MipsISA::tca
Bitfield< 15 > tca
Definition: mt_constants.hh:51
MipsISA::ics
Bitfield< 16 > ics
Definition: mt_constants.hh:69

Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17