gem5
v21.1.0.2
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
q
r
s
t
v
x
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
e
f
g
h
i
l
m
n
o
p
s
t
v
Variables
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
v
w
Typedefs
a
b
c
d
h
i
m
p
s
t
u
w
Enumerations
b
h
i
o
p
Enumerator
h
i
o
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
arch
power
regs
int.hh
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 The University of Edinburgh
3
* Copyright (c) 2021 IBM Corporation
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_POWER_REGS_INT_HH__
31
#define __ARCH_POWER_REGS_INT_HH__
32
33
namespace
gem5
34
{
35
36
namespace
PowerISA
37
{
38
39
// Constants Related to the number of registers
40
const
int
NumIntArchRegs
= 32;
41
42
// CR, XER, LR, CTR, TAR, FPSCR, MSR, RSV, RSV-LEN, RSV-ADDR
43
// and zero register, which doesn't actually exist but needs a number
44
const
int
NumIntSpecialRegs
= 11;
45
46
const
int
NumIntRegs
=
NumIntArchRegs
+
NumIntSpecialRegs
;
47
48
// Semantically meaningful register indices
49
const
int
ReturnValueReg
= 3;
50
const
int
ArgumentReg0
= 3;
51
const
int
ArgumentReg1
= 4;
52
const
int
ArgumentReg2
= 5;
53
const
int
ArgumentReg3
= 6;
54
const
int
ArgumentReg4
= 7;
55
const
int
ArgumentReg5
= 8;
56
const
int
StackPointerReg
= 1;
57
const
int
TOCPointerReg
= 2;
58
const
int
ThreadPointerReg
= 13;
59
60
enum
MiscIntRegNums
61
{
62
INTREG_CR
=
NumIntArchRegs
,
63
INTREG_XER
,
64
INTREG_LR
,
65
INTREG_CTR
,
66
INTREG_TAR
,
67
INTREG_FPSCR
,
68
INTREG_MSR
,
69
INTREG_RSV
,
70
INTREG_RSV_LEN
,
71
INTREG_RSV_ADDR
72
};
73
74
}
// namespace PowerISA
75
}
// namespace gem5
76
77
#endif // __ARCH_POWER_REGS_INT_HH__
gem5::PowerISA::INTREG_FPSCR
@ INTREG_FPSCR
Definition:
int.hh:67
gem5::PowerISA::ArgumentReg5
const int ArgumentReg5
Definition:
int.hh:55
gem5::PowerISA::ArgumentReg2
const int ArgumentReg2
Definition:
int.hh:52
gem5::PowerISA::ArgumentReg0
const int ArgumentReg0
Definition:
int.hh:50
gem5::PowerISA::TOCPointerReg
const int TOCPointerReg
Definition:
int.hh:57
gem5::PowerISA::NumIntSpecialRegs
const int NumIntSpecialRegs
Definition:
int.hh:44
gem5::PowerISA::ThreadPointerReg
const int ThreadPointerReg
Definition:
int.hh:58
gem5::PowerISA::StackPointerReg
const int StackPointerReg
Definition:
int.hh:56
gem5::PowerISA::INTREG_XER
@ INTREG_XER
Definition:
int.hh:63
gem5::PowerISA::INTREG_MSR
@ INTREG_MSR
Definition:
int.hh:68
gem5::PowerISA::INTREG_RSV
@ INTREG_RSV
Definition:
int.hh:69
gem5::PowerISA::ArgumentReg1
const int ArgumentReg1
Definition:
int.hh:51
gem5::PowerISA::ArgumentReg3
const int ArgumentReg3
Definition:
int.hh:53
gem5::PowerISA::INTREG_LR
@ INTREG_LR
Definition:
int.hh:64
gem5::PowerISA::INTREG_CR
@ INTREG_CR
Definition:
int.hh:62
gem5::PowerISA::INTREG_RSV_ADDR
@ INTREG_RSV_ADDR
Definition:
int.hh:71
gem5::PowerISA::ReturnValueReg
const int ReturnValueReg
Definition:
int.hh:49
gem5::PowerISA::INTREG_TAR
@ INTREG_TAR
Definition:
int.hh:66
gem5::PowerISA::INTREG_RSV_LEN
@ INTREG_RSV_LEN
Definition:
int.hh:70
gem5::PowerISA::INTREG_CTR
@ INTREG_CTR
Definition:
int.hh:65
gem5::PowerISA::ArgumentReg4
const int ArgumentReg4
Definition:
int.hh:54
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition:
decoder.cc:40
gem5::PowerISA::MiscIntRegNums
MiscIntRegNums
Definition:
int.hh:60
gem5::PowerISA::NumIntArchRegs
const int NumIntArchRegs
Definition:
int.hh:40
gem5::PowerISA::NumIntRegs
const int NumIntRegs
Definition:
int.hh:46
Generated on Tue Sep 21 2021 12:24:38 for gem5 by
doxygen
1.8.17