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

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