gem5
[DEVELOP-FOR-23.0]
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
q
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
y
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
d
e
f
g
h
i
l
m
n
o
p
s
t
v
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
a
b
c
d
g
h
i
l
m
r
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
sim
se_workload.hh
Go to the documentation of this file.
1
/*
2
* Copyright 2020 Google Inc.
3
*
4
* Redistribution and use in source and binary forms, with or without
5
* modification, are permitted provided that the following conditions are
6
* met: redistributions of source code must retain the above copyright
7
* notice, this list of conditions and the following disclaimer;
8
* redistributions in binary form must reproduce the above copyright
9
* notice, this list of conditions and the following disclaimer in the
10
* documentation and/or other materials provided with the distribution;
11
* neither the name of the copyright holders nor the names of its
12
* contributors may be used to endorse or promote products derived from
13
* this software without specific prior written permission.
14
*
15
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
*/
27
28
#ifndef __SIM_SE_WORKLOAD_HH__
29
#define __SIM_SE_WORKLOAD_HH__
30
31
#include "params/SEWorkload.hh"
32
#include "
sim/mem_pool.hh
"
33
#include "
sim/workload.hh
"
34
35
namespace
gem5
36
{
37
38
class
SEWorkload
:
public
Workload
39
{
40
protected
:
42
MemPools
memPools
;
43
44
public
:
45
using
Params
= SEWorkloadParams;
46
47
SEWorkload
(
const
Params
&
p
,
Addr
page_shift=0);
48
49
void
setSystem
(
System
*sys)
override
;
50
51
Addr
52
getEntry
()
const override
53
{
54
// This object represents the OS, not the individual processes running
55
// within it.
56
panic
(
"No workload entry point for syscall emulation mode."
);
57
}
58
59
loader::Arch
60
getArch
()
const override
61
{
62
// ISA specific subclasses should implement this method.
63
// This implemenetation is just to avoid having to implement those for
64
// now, and will be removed in the future.
65
panic
(
"SEWorkload::getArch() not implemented."
);
66
}
67
68
const
loader::SymbolTable
&
69
symtab
(
ThreadContext
*)
override
70
{
71
// This object represents the OS, not the individual processes running
72
// within it.
73
panic
(
"No workload symbol table for syscall emulation mode."
);
74
}
75
76
bool
77
insertSymbol
(
const
loader::Symbol
&symbol)
override
78
{
79
// This object represents the OS, not the individual processes running
80
// within it.
81
panic
(
"No workload symbol table for syscall emulation mode."
);
82
}
83
84
void
serialize
(
CheckpointOut
&cp)
const override
;
85
void
unserialize
(
CheckpointIn
&cp)
override
;
86
87
void
syscall
(
ThreadContext
*tc)
override
;
88
89
// For now, assume the only type of events are system calls.
90
void
event
(
ThreadContext
*tc)
override
{
syscall
(tc); }
91
92
Addr
allocPhysPages
(
int
npages,
int
pool_id=0);
93
Addr
memSize
(
int
pool_id=0)
const
;
94
Addr
freeMemSize
(
int
pool_id=0)
const
;
95
};
96
97
}
// namespace gem5
98
99
#endif // __SIM_SE_WORKLOAD_HH__
gem5::ArmISA::SEWorkload::SEWorkload
SEWorkload(const Params &p, Addr page_shift)
Definition:
se_workload.hh:47
gem5::SEWorkload::getArch
loader::Arch getArch() const override
Definition:
se_workload.hh:60
gem5::SEWorkload::unserialize
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Definition:
se_workload.cc:63
gem5::SEWorkload::event
void event(ThreadContext *tc) override
Definition:
se_workload.hh:90
gem5::CheckpointIn
Definition:
serialize.hh:68
gem5::loader::SymbolTable
Definition:
symtab.hh:64
gem5::SEWorkload::Params
SEWorkloadParams Params
Definition:
se_workload.hh:45
gem5::SEWorkload::allocPhysPages
Addr allocPhysPages(int npages, int pool_id=0)
Definition:
se_workload.cc:75
gem5::System
Definition:
system.hh:74
gem5::ThreadContext
ThreadContext is the external interface to all thread state for anything outside of the CPU.
Definition:
thread_context.hh:88
gem5::VegaISA::p
Bitfield< 54 > p
Definition:
pagetable.hh:70
gem5::SEWorkload::getEntry
Addr getEntry() const override
Definition:
se_workload.hh:52
workload.hh
gem5::Workload
Definition:
workload.hh:50
gem5::SEWorkload::syscall
void syscall(ThreadContext *tc) override
Definition:
se_workload.cc:69
gem5::SEWorkload::symtab
const loader::SymbolTable & symtab(ThreadContext *) override
Definition:
se_workload.hh:69
gem5::loader::Arch
Arch
Definition:
object_file.hh:61
gem5::ArmISA::SEWorkload
Definition:
se_workload.hh:42
gem5::Addr
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition:
types.hh:147
gem5::SEWorkload::freeMemSize
Addr freeMemSize(int pool_id=0) const
Definition:
se_workload.cc:87
gem5::SEWorkload::memPools
MemPools memPools
Memory allocation objects for all physical memories in the system.
Definition:
se_workload.hh:42
gem5::SEWorkload::insertSymbol
bool insertSymbol(const loader::Symbol &symbol) override
Definition:
se_workload.hh:77
mem_pool.hh
gem5::ArmISA::SEWorkload::setSystem
void setSystem(System *sys) override
Definition:
se_workload.hh:52
gem5::SEWorkload::memSize
Addr memSize(int pool_id=0) const
Definition:
se_workload.cc:81
gem5::loader::Symbol
Definition:
symtab.hh:50
gem5::CheckpointOut
std::ostream CheckpointOut
Definition:
serialize.hh:66
gem5::MemPools
Definition:
mem_pool.hh:86
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition:
gpu_translation_state.hh:37
panic
#define panic(...)
This implements a cprintf based panic() function.
Definition:
logging.hh:188
gem5::SEWorkload::serialize
void serialize(CheckpointOut &cp) const override
Serialize an object.
Definition:
se_workload.cc:57
Generated on Sun Jul 30 2023 01:56:48 for gem5 by
doxygen
1.8.17