gem5  v22.1.0.0
float.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2006 The Regents of The University of Michigan
3  * Copyright (c) 2007 MIPS Technologies, Inc.
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are
8  * met: redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer;
10  * redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution;
13  * neither the name of the copyright holders nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 #ifndef __ARCH_MIPS_REGS_FLOAT_HH__
31 #define __ARCH_MIPS_REGS_FLOAT_HH__
32 
33 #include <cstdint>
34 
35 #include "cpu/reg_class.hh"
36 #include "debug/FloatRegs.hh"
37 
38 namespace gem5
39 {
40 namespace MipsISA
41 {
42 namespace float_reg
43 {
44 
45 enum : RegIndex
46 {
80 
86 
88 };
89 
90 } // namespace float_reg
91 
93  float_reg::NumRegs, debug::FloatRegs);
94 
95 namespace float_reg
96 {
97 
98 inline constexpr RegId
131 
137 
138 } // namespace float_reg
139 
141 {
142  Inexact = 1,
148 };
149 
151 {
154  Cause_Field = 11
155 };
156 
157 const uint32_t MIPS32_QNAN = 0x7fbfffff;
158 const uint64_t MIPS64_QNAN = 0x7ff7ffffffffffffULL;
159 
160 } // namespace MipsISA
161 } // namespace gem5
162 
163 #endif
Register ID: describe an architectural register with its class and index.
Definition: reg_class.hh:91
constexpr RegId F25
Definition: float.hh:124
constexpr RegId F22
Definition: float.hh:121
constexpr RegId F20
Definition: float.hh:119
constexpr RegId F8
Definition: float.hh:107
constexpr RegId F0
Definition: float.hh:99
constexpr RegId F28
Definition: float.hh:127
constexpr RegId F13
Definition: float.hh:112
constexpr RegId F3
Definition: float.hh:102
constexpr RegId F7
Definition: float.hh:106
constexpr RegId F27
Definition: float.hh:126
constexpr RegId F1
Definition: float.hh:100
constexpr RegId F21
Definition: float.hh:120
constexpr RegId F14
Definition: float.hh:113
constexpr RegId Fccr
Definition: float.hh:133
constexpr RegId F2
Definition: float.hh:101
constexpr RegId F24
Definition: float.hh:123
constexpr RegId F26
Definition: float.hh:125
constexpr RegId F29
Definition: float.hh:128
constexpr RegId Fenr
Definition: float.hh:135
constexpr RegId F31
Definition: float.hh:130
constexpr RegId F12
Definition: float.hh:111
constexpr RegId F6
Definition: float.hh:105
constexpr RegId F10
Definition: float.hh:109
constexpr RegId F5
Definition: float.hh:104
constexpr RegId F19
Definition: float.hh:118
constexpr RegId F30
Definition: float.hh:129
constexpr RegId Fexr
Definition: float.hh:134
constexpr RegId F11
Definition: float.hh:110
constexpr RegId F23
Definition: float.hh:122
constexpr RegId Fir
Definition: float.hh:132
constexpr RegId F17
Definition: float.hh:116
constexpr RegId F9
Definition: float.hh:108
constexpr RegId F16
Definition: float.hh:115
constexpr RegId F18
Definition: float.hh:117
constexpr RegId F4
Definition: float.hh:103
constexpr RegId F15
Definition: float.hh:114
constexpr RegId Fcsr
Definition: float.hh:136
@ Enable_Field
Definition: float.hh:153
const uint64_t MIPS64_QNAN
Definition: float.hh:158
const uint32_t MIPS32_QNAN
Definition: float.hh:157
@ DivideByZero
Definition: float.hh:145
@ Unimplemented
Definition: float.hh:147
constexpr RegClass floatRegClass(FloatRegClass, FloatRegClassName, float_reg::NumRegs, debug::FloatRegs)
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
uint16_t RegIndex
Definition: types.hh:176
@ FloatRegClass
Floating-point register.
Definition: reg_class.hh:61
constexpr char FloatRegClassName[]
Definition: reg_class.hh:74

Generated on Wed Dec 21 2022 10:22:27 for gem5 by doxygen 1.9.1