gem5  v20.1.0.0
miscregs.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 The University of Edinburgh
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_POWER_MISCREGS_HH__
30 #define __ARCH_POWER_MISCREGS_HH__
31 
32 #include "base/bitunion.hh"
33 
34 namespace PowerISA
35 {
36 
39 };
40 
41 const char * const miscRegName[NUM_MISCREGS] = {
42 };
43 
44 BitUnion32(Cr)
45  SubBitUnion(cr0, 31, 28)
46  Bitfield<31> lt;
47  Bitfield<30> gt;
48  Bitfield<29> eq;
49  Bitfield<28> so;
50  EndSubBitUnion(cr0)
51  Bitfield<27,24> cr1;
52 EndBitUnion(Cr)
53 
54 BitUnion32(Xer)
55  Bitfield<31> so;
56  Bitfield<30> ov;
57  Bitfield<29> ca;
58 EndBitUnion(Xer)
59 
60 BitUnion32(Fpscr)
61  Bitfield<31> fx;
62  Bitfield<30> fex;
63  Bitfield<29> vx;
64  Bitfield<28> ox;
65  Bitfield<27> ux;
66  Bitfield<26> zx;
67  Bitfield<25> xx;
68  Bitfield<24> vxsnan;
69  Bitfield<23> vxisi;
70  Bitfield<22> vxidi;
71  Bitfield<21> vxzdz;
72  Bitfield<20> vximz;
73  Bitfield<19> vxvc;
74  Bitfield<18> fr;
75  Bitfield<17> fi;
76  SubBitUnion(fprf, 16, 12)
77  Bitfield<16> c;
78  SubBitUnion(fpcc, 15, 12)
79  Bitfield<15> fl;
80  Bitfield<14> fg;
81  Bitfield<13> fe;
82  Bitfield<12> fu;
83  EndSubBitUnion(fpcc)
84  EndSubBitUnion(fprf)
85  Bitfield<10> vxsqrt;
86  Bitfield<9> vxcvi;
87  Bitfield<8> ve;
88  Bitfield<7> oe;
89  Bitfield<6> ue;
90  Bitfield<5> ze;
91  Bitfield<4> xe;
92  Bitfield<3> ni;
93  Bitfield<2,1> rn;
94 EndBitUnion(Fpscr)
95 
96 } // namespace PowerISA
97 
98 #endif // __ARCH_POWER_MISCREGS_HH__
PowerISA::ux
Bitfield< 27 > ux
Definition: miscregs.hh:65
PowerISA::fi
Bitfield< 17 > fi
Definition: miscregs.hh:75
PowerISA::cr1
cr1
Definition: miscregs.hh:51
PowerISA::EndSubBitUnion
EndSubBitUnion(cr0) Bitfield< 27
PowerISA::xe
Bitfield< 4 > xe
Definition: miscregs.hh:91
PowerISA::rn
Bitfield< 2, 1 > rn
Definition: miscregs.hh:93
PowerISA::so
Bitfield< 28 > so
Definition: miscregs.hh:49
PowerISA::oe
Bitfield< 7 > oe
Definition: miscregs.hh:88
PowerISA::ca
Bitfield< 29 > ca
Definition: miscregs.hh:57
PowerISA::vxzdz
Bitfield< 21 > vxzdz
Definition: miscregs.hh:71
PowerISA::MiscRegIndex
MiscRegIndex
Definition: miscregs.hh:37
PowerISA::ve
Bitfield< 8 > ve
Definition: miscregs.hh:87
PowerISA::ze
Bitfield< 5 > ze
Definition: miscregs.hh:90
PowerISA::vx
Bitfield< 29 > vx
Definition: miscregs.hh:63
PowerISA
Definition: decoder.cc:31
PowerISA::vxisi
Bitfield< 23 > vxisi
Definition: miscregs.hh:69
PowerISA::vxvc
Bitfield< 19 > vxvc
Definition: miscregs.hh:73
PowerISA::miscRegName
const char *const miscRegName[NUM_MISCREGS]
Definition: miscregs.hh:41
PowerISA::gt
Bitfield< 30 > gt
Definition: miscregs.hh:47
bitunion.hh
PowerISA::ov
Bitfield< 30 > ov
Definition: miscregs.hh:56
PowerISA::EndBitUnion
EndBitUnion(Cr) BitUnion32(Xer) Bitfield< 31 > so
PowerISA::fu
Bitfield< 12 > fu
Definition: miscregs.hh:82
PowerISA::fr
Bitfield< 18 > fr
Definition: miscregs.hh:74
PowerISA::vximz
Bitfield< 20 > vximz
Definition: miscregs.hh:72
PowerISA::fe
Bitfield< 13 > fe
Definition: miscregs.hh:81
PowerISA::fex
Bitfield< 30 > fex
Definition: miscregs.hh:62
SparcISA::c
Bitfield< 4 > c
Definition: miscregs.hh:141
PowerISA::BitUnion32
BitUnion32(Cr) SubBitUnion(cr0
PowerISA::eq
Bitfield< 29 > eq
Definition: miscregs.hh:48
PowerISA::vxsnan
Bitfield< 24 > vxsnan
Definition: miscregs.hh:68
PowerISA::ox
Bitfield< 28 > ox
Definition: miscregs.hh:64
PowerISA::SubBitUnion
SubBitUnion(fprf, 16, 12) Bitfield< 16 > c
PowerISA::ni
Bitfield< 3 > ni
Definition: miscregs.hh:92
PowerISA::zx
Bitfield< 26 > zx
Definition: miscregs.hh:66
PowerISA::ue
Bitfield< 6 > ue
Definition: miscregs.hh:89
PowerISA::lt
Bitfield< 31 > lt
Definition: miscregs.hh:45
PowerISA::NUM_MISCREGS
@ NUM_MISCREGS
Definition: miscregs.hh:38
PowerISA::fg
Bitfield< 14 > fg
Definition: miscregs.hh:80
PowerISA::xx
Bitfield< 25 > xx
Definition: miscregs.hh:67
PowerISA::vxidi
Bitfield< 22 > vxidi
Definition: miscregs.hh:70
PowerISA::vxcvi
Bitfield< 9 > vxcvi
Definition: miscregs.hh:86

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