gem5  v21.1.0.2
linux.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2005 The Regents of The University of Michigan
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_SPARC_LINUX_LINUX_HH__
30 #define __ARCH_SPARC_LINUX_LINUX_HH__
31 
32 #include <map>
33 
34 #include "arch/sparc/asi.hh"
35 #include "arch/sparc/regs/int.hh"
36 #include "arch/sparc/regs/misc.hh"
37 #include "cpu/thread_context.hh"
39 #include "kern/linux/linux.hh"
40 
41 namespace gem5
42 {
43 
44 class SparcLinux : public Linux, public OpenFlagTable<SparcLinux>
45 {
46  public:
47 
48  static const ByteOrder byteOrder = ByteOrder::big;
49 
50  struct tgt_stat
51  {
52  uint32_t st_dev;
53  char __pad1[4];
54  uint64_t st_ino;
55  uint32_t st_mode;
56  uint16_t st_nlink;
57  uint32_t st_uid;
58  uint32_t st_gid;
59  uint32_t st_rdev;
60  char __pad2[4];
61  int64_t st_size;
62  int64_t st_atimeX;
63  int64_t st_mtimeX;
64  int64_t st_ctimeX;
65  int64_t st_blksize;
66  int64_t st_blocks;
67  uint64_t __unused4[2];
68  };
69 
70  struct tgt_stat64
71  {
72  uint64_t st_dev;
73  uint64_t st_ino;
74  uint64_t st_nlink;
75 
76  uint32_t st_mode;
77  uint32_t st_uid;
78  uint32_t st_gid;
79  uint32_t __pad0;
80 
81  uint64_t st_rdev;
82  int64_t st_size;
83  int64_t st_blksize;
84  int64_t st_blocks;
85 
86  uint64_t st_atimeX;
87  uint64_t st_atime_nsec;
88  uint64_t st_mtimeX;
89  uint64_t st_mtime_nsec;
90  uint64_t st_ctimeX;
91  uint64_t st_ctime_nsec;
92  int64_t __unused[3];
93  };
94 
95  // SPARC receives weird subsignals for several of its signals. If you
96  // find yourself needing to implement these in detail, look at the
97  // Linux source.
98  static const int TGT_SIGHUP = 0x000001;
99  static const int TGT_SIGINT = 0x000002;
100  static const int TGT_SIGQUIT = 0x000003;
101  static const int TGT_SIGILL = 0x000004;
102  static const int TGT_SIGTRAP = 0x000005;
103  static const int TGT_SIGABRT = 0x000006;
104  static const int TGT_SIGIOT = 0x000006;
105  static const int TGT_SIGEMT = 0x000007;
106  static const int TGT_SIGFPE = 0x000008;
107  static const int TGT_SIGKILL = 0x000009;
108  static const int TGT_SIGBUS = 0x00000a;
109  static const int TGT_SIGSEGV = 0x00000b;
110  static const int TGT_SIGSYS = 0x00000c;
111  static const int TGT_SIGPIPE = 0x00000d;
112  static const int TGT_SIGALRM = 0x00000e;
113  static const int TGT_SIGTERM = 0x00000f;
114  static const int TGT_SIGURG = 0x000010;
115  static const int TGT_SIGSTOP = 0x000011;
116  static const int TGT_SIGTSTP = 0x000012;
117  static const int TGT_SIGCONT = 0x000013;
118  static const int TGT_SIGCHLD = 0x000014;
119  static const int TGT_SIGTTIN = 0x000015;
120  static const int TGT_SIGTTOU = 0x000016;
121  static const int TGT_SIGIO = 0x000017;
122  static const int TGT_SIGPOLL = 0x000017;
123  static const int TGT_SIGXCPU = 0x000018;
124  static const int TGT_SIGXFSZ = 0x000019;
125  static const int TGT_SIGVTALRM = 0x00001a;
126  static const int TGT_SIGPROF = 0x00001b;
127  static const int TGT_SIGWINCH = 0x00001c;
128  static const int TGT_SIGLOST = 0x00001d;
129  static const int TGT_SIGPWR = 0x00001d;
130  static const int TGT_SIGUSR1 = 0x00001e;
131  static const int TGT_SIGUSR2 = 0x00001f;
132 
133  static constexpr int TGT_O_RDONLY = 0x00000000;
134  static constexpr int TGT_O_WRONLY = 0x00000001;
135  static constexpr int TGT_O_RDWR = 0x00000002;
136  static constexpr int TGT_O_NONBLOCK = 0x00004000;
137  static constexpr int TGT_O_APPEND = 0x00000008;
138  static constexpr int TGT_FASYNC = 0x00000040;
139  static constexpr int TGT_O_CREAT = 0x00000200;
140  static constexpr int TGT_O_TRUNC = 0x00000400;
141  static constexpr int TGT_O_EXCL = 0x00000800;
142  static constexpr int TGT_O_NOCTTY = 0x00008000;
143  static constexpr int TGT_O_DSYNC = 0x00002000;
144  static constexpr int TGT_O_LARGEFILE = 0x00040000;
145  static constexpr int TGT_O_DIRECT = 0x00100000;
146  static constexpr int TGT_O_NOATIME = 0x00200000;
147  static constexpr int TGT_O_CLOEXEC = 0x00400000;
148  static constexpr int TGT_O_SYNC = 0x00802000;
149  static constexpr int TGT_O_PATH = 0x01000000;
150 
151  static constexpr int TGT_O_DIRECTORY = 000200000;
152  static constexpr int TGT_O_NOFOLLOW = 000400000;
153 
154  static constexpr unsigned TGT_MAP_SHARED = 0x00001;
155  static constexpr unsigned TGT_MAP_PRIVATE = 0x00002;
156  static constexpr unsigned TGT_MAP_ANON = 0x00020;
157  static constexpr unsigned TGT_MAP_DENYWRITE = 0x00800;
158  static constexpr unsigned TGT_MAP_EXECUTABLE = 0x01000;
159  static constexpr unsigned TGT_MAP_FILE = 0x00000;
160  static constexpr unsigned TGT_MAP_GROWSDOWN = 0x00200;
161  static constexpr unsigned TGT_MAP_HUGETLB = 0x40000;
162  static constexpr unsigned TGT_MAP_LOCKED = 0x00100;
163  static constexpr unsigned TGT_MAP_NONBLOCK = 0x10000;
164  static constexpr unsigned TGT_MAP_NORESERVE = 0x00040;
165  static constexpr unsigned TGT_MAP_POPULATE = 0x08000;
166  static constexpr unsigned TGT_MAP_STACK = 0x20000;
167  static constexpr unsigned TGT_MAP_ANONYMOUS = 0x00020;
168  static constexpr unsigned TGT_MAP_FIXED = 0x00010;
169  static constexpr unsigned TGT_MAP_INHERIT = 0x00080;
170 
171  struct tgt_sysinfo
172  {
173  int64_t uptime; /* Seconds since boot */
174  uint64_t loads[3]; /* 1, 5, and 15 minute load averages */
175  uint64_t totalram; /* Total usable main memory size */
176  uint64_t freeram; /* Available memory size */
177  uint64_t sharedram; /* Amount of shared memory */
178  uint64_t bufferram; /* Memory used by buffers */
179  uint64_t totalswap; /* Total swap space size */
180  uint64_t freeswap; /* swap space still available */
181  uint16_t procs; /* Number of current processes */
182  uint64_t totalhigh; /* Total high memory size */
183  uint64_t freehigh; /* Available high memory size */
184  uint64_t mem_unit; /* Memory unit size in bytes */
185  };
186 
188  static const unsigned TGT_TCGETA = 0x40125401;
193  static const unsigned TGT_TCSETAW = 0x80125403;
194  static const unsigned TGT_TCGETS = 0x40385408;
195  static const unsigned TGT_FIONREAD = 0x4004667f;
196  static const unsigned TGT_TIOCGETP = 0x40067408;
197  static const unsigned TGT_TIOCSETP = 0x80067409;
198  static const unsigned TGT_TIOCSETN = 0x8006740a;
200 
201  static bool
202  isTtyReq(unsigned req)
203  {
204  switch (req) {
205  case TGT_TIOCGETP:
206  case TGT_TIOCSETP:
207  case TGT_TIOCSETN:
208  case TGT_TCGETS:
209  case TGT_TCGETA:
210  case TGT_TCSETAW:
211  return true;
212  default:
213  return false;
214  }
215  }
216 
217  static void
218  archClone(uint64_t flags,
219  Process *pp, Process *cp,
221  uint64_t stack, uint64_t tls)
222  {
223  ctc->getIsaPtr()->copyRegsFrom(ptc);
232  for (int y = 8; y < 32; y++)
233  ctc->setIntReg(y, ptc->readIntReg(y));
234 
235  if (stack)
237 
238  // Set these extra values. Since "clone" doesn't return two values,
239  // we can set these and they won't be clobbered by the syscall ABI.
240  ptc->setIntReg(SparcISA::SyscallPseudoReturnReg, 0);
242  }
243 };
244 
245 class Sparc32Linux : public SparcLinux
246 {
247  public:
248 
249  struct tgt_stat64
250  {
251  uint64_t st_dev;
252  uint64_t st_ino;
253  uint32_t st_mode;
254  uint32_t st_nlink;
255  uint32_t st_uid;
256  uint32_t st_gid;
257  uint64_t st_rdev;
258  uint8_t __pad3[8];
259  int64_t st_size;
260  int32_t st_blksize;
261  uint8_t __pad4[8];
262  int64_t st_blocks;
263  uint64_t st_atimeX;
264  uint64_t st_atime_nsec;
265  uint64_t st_mtimeX;
266  uint64_t st_mtime_nsec;
267  uint64_t st_ctimeX;
268  uint64_t st_ctime_nsec;
269  uint32_t __unused4;
270  uint32_t __unused5;
271  };
272 
273  struct tgt_sysinfo
274  {
275  int32_t uptime; /* Seconds since boot */
276  uint32_t loads[3]; /* 1, 5, and 15 minute load averages */
277  uint32_t totalram; /* Total usable main memory size */
278  uint32_t freeram; /* Available memory size */
279  uint32_t sharedram; /* Amount of shared memory */
280  uint32_t bufferram; /* Memory used by buffers */
281  uint32_t totalswap; /* Total swap space size */
282  uint32_t freeswap; /* swap space still available */
283  uint16_t procs; /* Number of current processes */
284  uint32_t totalhigh; /* Total high memory size */
285  uint32_t freehigh; /* Available high memory size */
286  uint32_t mem_unit; /* Memory unit size in bytes */
287  };
288 
290  static const unsigned TGT_RLIMIT_NPROC = 7;
291  static const unsigned TGT_RLIMIT_NOFILE = 6;
292 };
293 
294 } // namespace gem5
295 
296 #endif
gem5::ThreadContext::setIntReg
virtual void setIntReg(RegIndex reg_idx, RegVal val)=0
gem5::SparcLinux::tgt_stat64::st_dev
uint64_t st_dev
Definition: linux.hh:72
gem5::SparcISA::MISCREG_ASI
@ MISCREG_ASI
Ancillary State Registers.
Definition: misc.hh:45
gem5::SparcLinux::TGT_SIGQUIT
static const int TGT_SIGQUIT
Definition: linux.hh:100
gem5::Sparc32Linux::tgt_sysinfo::procs
uint16_t procs
Definition: linux.hh:283
gem5::SparcLinux::TGT_O_CLOEXEC
static constexpr int TGT_O_CLOEXEC
O_CLOEXEC.
Definition: linux.hh:147
gem5::SparcLinux::tgt_stat::st_mtimeX
int64_t st_mtimeX
Definition: linux.hh:63
gem5::SparcLinux::TGT_MAP_FIXED
static constexpr unsigned TGT_MAP_FIXED
Definition: linux.hh:168
gem5::Sparc32Linux::tgt_sysinfo::bufferram
uint32_t bufferram
Definition: linux.hh:280
gem5::Sparc32Linux::tgt_stat64::st_blocks
int64_t st_blocks
Definition: linux.hh:262
gem5::Sparc32Linux::tgt_stat64::st_mode
uint32_t st_mode
Definition: linux.hh:253
gem5::SparcLinux::tgt_stat::st_ctimeX
int64_t st_ctimeX
Definition: linux.hh:64
gem5::SparcLinux::TGT_SIGURG
static const int TGT_SIGURG
Definition: linux.hh:114
gem5::SparcLinux::TGT_O_RDWR
static constexpr int TGT_O_RDWR
O_RDWR.
Definition: linux.hh:135
gem5::SparcLinux::TGT_SIGTSTP
static const int TGT_SIGTSTP
Definition: linux.hh:116
misc.hh
gem5::SparcLinux::tgt_stat::st_dev
uint32_t st_dev
Definition: linux.hh:52
gem5::SparcLinux::tgt_stat64::st_rdev
uint64_t st_rdev
Definition: linux.hh:81
gem5::SparcLinux::TGT_SIGCHLD
static const int TGT_SIGCHLD
Definition: linux.hh:118
linux.hh
gem5::SparcLinux::TGT_TCSETAW
static const unsigned TGT_TCSETAW
Definition: linux.hh:193
gem5::Sparc32Linux::tgt_stat64::st_mtime_nsec
uint64_t st_mtime_nsec
Definition: linux.hh:266
gem5::Sparc32Linux::tgt_stat64::st_size
int64_t st_size
Definition: linux.hh:259
gem5::SparcLinux::TGT_SIGUSR1
static const int TGT_SIGUSR1
Definition: linux.hh:130
gem5::SparcISA::INTREG_WSTATE
@ INTREG_WSTATE
Definition: int.hh:64
gem5::SparcLinux::TGT_O_NONBLOCK
static constexpr int TGT_O_NONBLOCK
O_NONBLOCK.
Definition: linux.hh:136
gem5::BaseISA::copyRegsFrom
virtual void copyRegsFrom(ThreadContext *src)=0
gem5::SparcLinux::tgt_stat64::st_atimeX
uint64_t st_atimeX
Definition: linux.hh:86
gem5::SparcLinux::tgt_sysinfo::freeram
uint64_t freeram
Definition: linux.hh:176
gem5::SparcLinux::tgt_sysinfo::freehigh
uint64_t freehigh
Definition: linux.hh:183
gem5::SparcLinux::TGT_O_NOFOLLOW
static constexpr int TGT_O_NOFOLLOW
O_NOFOLLOW.
Definition: linux.hh:152
gem5::Sparc32Linux::tgt_sysinfo::totalswap
uint32_t totalswap
Definition: linux.hh:281
gem5::SparcLinux::tgt_stat::st_size
int64_t st_size
Definition: linux.hh:61
gem5::Sparc32Linux::tgt_stat64::st_gid
uint32_t st_gid
Definition: linux.hh:256
gem5::Sparc32Linux::tgt_stat64::st_ctimeX
uint64_t st_ctimeX
Definition: linux.hh:267
gem5::SparcLinux::tgt_sysinfo::totalram
uint64_t totalram
Definition: linux.hh:175
gem5::SparcISA::INTREG_CANSAVE
@ INTREG_CANSAVE
Definition: int.hh:60
gem5::Sparc32Linux::tgt_stat64::st_dev
uint64_t st_dev
Definition: linux.hh:251
gem5::SparcLinux::tgt_sysinfo::sharedram
uint64_t sharedram
Definition: linux.hh:177
gem5::SparcLinux::TGT_MAP_HUGETLB
static constexpr unsigned TGT_MAP_HUGETLB
Definition: linux.hh:161
gem5::SparcLinux::TGT_O_DIRECT
static constexpr int TGT_O_DIRECT
O_DIRECT.
Definition: linux.hh:145
gem5::SparcLinux::TGT_O_CREAT
static constexpr int TGT_O_CREAT
O_CREAT.
Definition: linux.hh:139
gem5::SparcISA::INTREG_CLEANWIN
@ INTREG_CLEANWIN
Definition: int.hh:62
gem5::SparcLinux::archClone
static void archClone(uint64_t flags, Process *pp, Process *cp, ThreadContext *ptc, ThreadContext *ctc, uint64_t stack, uint64_t tls)
Definition: linux.hh:218
gem5::Sparc32Linux::tgt_stat64::st_rdev
uint64_t st_rdev
Definition: linux.hh:257
gem5::SparcLinux::TGT_MAP_LOCKED
static constexpr unsigned TGT_MAP_LOCKED
Definition: linux.hh:162
gem5::SparcLinux::tgt_stat64::st_ino
uint64_t st_ino
Definition: linux.hh:73
gem5::Sparc32Linux::tgt_stat64::st_atime_nsec
uint64_t st_atime_nsec
Definition: linux.hh:264
gem5::SparcLinux::tgt_stat64::__unused
int64_t __unused[3]
Definition: linux.hh:92
gem5::SparcLinux::TGT_SIGALRM
static const int TGT_SIGALRM
Definition: linux.hh:112
gem5::SparcLinux::TGT_SIGKILL
static const int TGT_SIGKILL
Definition: linux.hh:107
gem5::SparcLinux::tgt_sysinfo::totalswap
uint64_t totalswap
Definition: linux.hh:179
gem5::SparcLinux::tgt_stat::st_mode
uint32_t st_mode
Definition: linux.hh:55
gem5::Sparc32Linux::tgt_stat64::__pad4
uint8_t __pad4[8]
Definition: linux.hh:261
gem5::Sparc32Linux::tgt_stat64::__pad3
uint8_t __pad3[8]
Definition: linux.hh:258
gem5::SparcLinux::TGT_O_LARGEFILE
static constexpr int TGT_O_LARGEFILE
O_LARGEFILE.
Definition: linux.hh:144
gem5::Sparc32Linux
Definition: linux.hh:245
gem5::SparcLinux::TGT_SIGABRT
static const int TGT_SIGABRT
Definition: linux.hh:103
gem5::SparcLinux::TGT_MAP_GROWSDOWN
static constexpr unsigned TGT_MAP_GROWSDOWN
Definition: linux.hh:160
gem5::Sparc32Linux::tgt_sysinfo::freehigh
uint32_t freehigh
Definition: linux.hh:285
gem5::SparcLinux::TGT_SIGTERM
static const int TGT_SIGTERM
Definition: linux.hh:113
gem5::Sparc32Linux::tgt_sysinfo::freeswap
uint32_t freeswap
Definition: linux.hh:282
gem5::SparcLinux::tgt_stat::st_rdev
uint32_t st_rdev
Definition: linux.hh:59
gem5::SparcLinux::TGT_MAP_ANON
static constexpr unsigned TGT_MAP_ANON
Definition: linux.hh:156
gem5::Sparc32Linux::tgt_stat64::st_blksize
int32_t st_blksize
Definition: linux.hh:260
gem5::Sparc32Linux::tgt_stat64::__unused5
uint32_t __unused5
Definition: linux.hh:270
gem5::SparcLinux::TGT_FIONREAD
static const unsigned TGT_FIONREAD
Definition: linux.hh:195
gem5::SparcLinux::TGT_SIGIO
static const int TGT_SIGIO
Definition: linux.hh:121
gem5::SparcLinux::tgt_sysinfo::totalhigh
uint64_t totalhigh
Definition: linux.hh:182
gem5::SparcLinux::tgt_stat64::st_blksize
int64_t st_blksize
Definition: linux.hh:83
gem5::SparcLinux::TGT_O_APPEND
static constexpr int TGT_O_APPEND
O_APPEND.
Definition: linux.hh:137
gem5::SparcLinux::TGT_SIGLOST
static const int TGT_SIGLOST
Definition: linux.hh:128
gem5::OpenFlagTable
Definition: flag_tables.hh:60
gem5::SparcLinux::tgt_stat64::st_blocks
int64_t st_blocks
Definition: linux.hh:84
gem5::SparcLinux::TGT_O_NOATIME
static constexpr int TGT_O_NOATIME
O_NOATIME.
Definition: linux.hh:146
gem5::SparcLinux::TGT_MAP_FILE
static constexpr unsigned TGT_MAP_FILE
Definition: linux.hh:159
gem5::ThreadContext::getIsaPtr
virtual BaseISA * getIsaPtr()=0
gem5::SparcLinux::TGT_O_SYNC
static constexpr int TGT_O_SYNC
O_SYNC.
Definition: linux.hh:148
gem5::SparcLinux::tgt_stat::st_blocks
int64_t st_blocks
Definition: linux.hh:66
gem5::SparcLinux::tgt_stat::st_ino
uint64_t st_ino
Definition: linux.hh:54
gem5::ThreadContext
ThreadContext is the external interface to all thread state for anything outside of the CPU.
Definition: thread_context.hh:93
gem5::X86ISA::stack
Bitfield< 17, 16 > stack
Definition: misc.hh:593
gem5::SparcLinux::TGT_TIOCSETN
static const unsigned TGT_TIOCSETN
Definition: linux.hh:198
gem5::SparcLinux::TGT_SIGEMT
static const int TGT_SIGEMT
Definition: linux.hh:105
gem5::SparcLinux::TGT_MAP_NORESERVE
static constexpr unsigned TGT_MAP_NORESERVE
Definition: linux.hh:164
gem5::SparcLinux::TGT_SIGPIPE
static const int TGT_SIGPIPE
Definition: linux.hh:111
gem5::SparcLinux::TGT_SIGUSR2
static const int TGT_SIGUSR2
Definition: linux.hh:131
gem5::SparcISA::MISCREG_TL
@ MISCREG_TL
Definition: misc.hh:66
gem5::Sparc32Linux::tgt_sysinfo
Definition: linux.hh:273
gem5::SparcLinux::byteOrder
static const ByteOrder byteOrder
Definition: linux.hh:48
gem5::SparcLinux::tgt_stat64::__pad0
uint32_t __pad0
Definition: linux.hh:79
asi.hh
gem5::SparcLinux::tgt_sysinfo::freeswap
uint64_t freeswap
Definition: linux.hh:180
gem5::Sparc32Linux::tgt_stat64::st_atimeX
uint64_t st_atimeX
Definition: linux.hh:263
gem5::SparcLinux::TGT_MAP_ANONYMOUS
static constexpr unsigned TGT_MAP_ANONYMOUS
Definition: linux.hh:167
gem5::Linux
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...
Definition: linux.hh:49
gem5::Sparc32Linux::tgt_sysinfo::mem_unit
uint32_t mem_unit
Definition: linux.hh:286
gem5::SparcISA::INTREG_OTHERWIN
@ INTREG_OTHERWIN
Definition: int.hh:63
gem5::SparcLinux::tgt_stat64::st_atime_nsec
uint64_t st_atime_nsec
Definition: linux.hh:87
gem5::Sparc32Linux::tgt_stat64::st_ctime_nsec
uint64_t st_ctime_nsec
Definition: linux.hh:268
gem5::SparcLinux::tgt_stat
Definition: linux.hh:50
gem5::SparcLinux::TGT_SIGXFSZ
static const int TGT_SIGXFSZ
Definition: linux.hh:124
gem5::SparcISA::INTREG_CANRESTORE
@ INTREG_CANRESTORE
Definition: int.hh:61
int.hh
gem5::SparcLinux::tgt_stat64::st_gid
uint32_t st_gid
Definition: linux.hh:78
gem5::SparcLinux::TGT_MAP_PRIVATE
static constexpr unsigned TGT_MAP_PRIVATE
Definition: linux.hh:155
gem5::SparcLinux::TGT_SIGHUP
static const int TGT_SIGHUP
Definition: linux.hh:98
gem5::SparcISA::SyscallPseudoReturnReg
const int SyscallPseudoReturnReg
Definition: int.hh:77
gem5::SparcLinux::TGT_O_DIRECTORY
static constexpr int TGT_O_DIRECTORY
O_DIRECTORY.
Definition: linux.hh:151
gem5::SparcLinux::TGT_O_PATH
static constexpr int TGT_O_PATH
O_PATH.
Definition: linux.hh:149
gem5::SparcLinux::TGT_SIGFPE
static const int TGT_SIGFPE
Definition: linux.hh:106
gem5::Sparc32Linux::tgt_sysinfo::loads
uint32_t loads[3]
Definition: linux.hh:276
gem5::SparcLinux::isTtyReq
static bool isTtyReq(unsigned req)
Definition: linux.hh:202
gem5::SparcLinux::TGT_SIGTTOU
static const int TGT_SIGTTOU
Definition: linux.hh:120
gem5::MipsISA::ptc
Bitfield< 7, 0 > ptc
Definition: mt_constants.hh:56
gem5::SparcLinux::TGT_SIGSTOP
static const int TGT_SIGSTOP
Definition: linux.hh:115
gem5::SparcLinux::tgt_stat64::st_uid
uint32_t st_uid
Definition: linux.hh:77
gem5::SparcLinux::tgt_stat64::st_ctime_nsec
uint64_t st_ctime_nsec
Definition: linux.hh:91
gem5::SparcLinux::TGT_MAP_INHERIT
static constexpr unsigned TGT_MAP_INHERIT
Definition: linux.hh:169
gem5::Sparc32Linux::tgt_stat64::st_uid
uint32_t st_uid
Definition: linux.hh:255
gem5::SparcLinux::TGT_SIGWINCH
static const int TGT_SIGWINCH
Definition: linux.hh:127
gem5::Sparc32Linux::tgt_stat64::st_mtimeX
uint64_t st_mtimeX
Definition: linux.hh:265
gem5::SparcLinux::TGT_SIGIOT
static const int TGT_SIGIOT
Definition: linux.hh:104
gem5::Sparc32Linux::tgt_stat64::__unused4
uint32_t __unused4
Definition: linux.hh:269
gem5::Sparc32Linux::tgt_stat64::st_nlink
uint32_t st_nlink
Definition: linux.hh:254
gem5::Process
Definition: process.hh:67
gem5::SparcISA::ASI_PRIMARY
@ ASI_PRIMARY
Definition: asi.hh:167
gem5::SparcLinux::TGT_MAP_DENYWRITE
static constexpr unsigned TGT_MAP_DENYWRITE
Definition: linux.hh:157
gem5::SparcLinux::tgt_sysinfo::procs
uint16_t procs
Definition: linux.hh:181
gem5::SparcLinux::tgt_stat::__pad2
char __pad2[4]
Definition: linux.hh:60
gem5::SparcLinux::TGT_SIGTRAP
static const int TGT_SIGTRAP
Definition: linux.hh:102
gem5::SparcISA::NWindows
const int NWindows
Definition: sparc_traits.hh:44
gem5::SparcLinux::TGT_TIOCSETP
static const unsigned TGT_TIOCSETP
Definition: linux.hh:197
gem5::SparcLinux::tgt_stat::st_gid
uint32_t st_gid
Definition: linux.hh:58
gem5::SparcLinux::TGT_O_DSYNC
static constexpr int TGT_O_DSYNC
O_DSYNC.
Definition: linux.hh:143
gem5::SparcLinux::tgt_stat::st_atimeX
int64_t st_atimeX
Definition: linux.hh:62
gem5::SparcLinux::tgt_stat64::st_size
int64_t st_size
Definition: linux.hh:82
gem5::Sparc32Linux::tgt_sysinfo::uptime
int32_t uptime
Definition: linux.hh:275
gem5::SparcLinux::TGT_MAP_POPULATE
static constexpr unsigned TGT_MAP_POPULATE
Definition: linux.hh:165
gem5::SparcLinux::tgt_stat64::st_mtime_nsec
uint64_t st_mtime_nsec
Definition: linux.hh:89
gem5::SparcLinux::tgt_stat::st_nlink
uint16_t st_nlink
Definition: linux.hh:56
gem5::SparcLinux::TGT_SIGBUS
static const int TGT_SIGBUS
Definition: linux.hh:108
gem5::Sparc32Linux::tgt_sysinfo::sharedram
uint32_t sharedram
Definition: linux.hh:279
gem5::ThreadContext::setMiscReg
virtual void setMiscReg(RegIndex misc_reg, RegVal val)=0
gem5::SparcLinux::TGT_O_EXCL
static constexpr int TGT_O_EXCL
O_EXCL.
Definition: linux.hh:141
gem5::SparcLinux::TGT_O_NOCTTY
static constexpr int TGT_O_NOCTTY
O_NOCTTY.
Definition: linux.hh:142
gem5::Sparc32Linux::tgt_stat64
Definition: linux.hh:249
gem5::SparcLinux::tgt_stat::__pad1
char __pad1[4]
Definition: linux.hh:53
gem5::SparcLinux::TGT_MAP_EXECUTABLE
static constexpr unsigned TGT_MAP_EXECUTABLE
Definition: linux.hh:158
gem5::SparcLinux::TGT_O_TRUNC
static constexpr int TGT_O_TRUNC
O_TRUNC.
Definition: linux.hh:140
gem5::SparcLinux::TGT_MAP_SHARED
static constexpr unsigned TGT_MAP_SHARED
Definition: linux.hh:154
gem5::SparcLinux::TGT_FASYNC
static constexpr int TGT_FASYNC
FASYNC.
Definition: linux.hh:138
gem5::SparcLinux::TGT_SIGPOLL
static const int TGT_SIGPOLL
Definition: linux.hh:122
gem5::Sparc32Linux::tgt_stat64::st_ino
uint64_t st_ino
Definition: linux.hh:252
gem5::SparcLinux::tgt_sysinfo::uptime
int64_t uptime
Definition: linux.hh:173
gem5::SparcLinux::TGT_O_RDONLY
static constexpr int TGT_O_RDONLY
O_RDONLY.
Definition: linux.hh:133
gem5::SparcISA::StackPointerReg
const int StackPointerReg
Definition: int.hh:73
gem5::SparcLinux::tgt_sysinfo::bufferram
uint64_t bufferram
Definition: linux.hh:178
gem5::SparcLinux
Definition: linux.hh:44
gem5::SparcLinux::tgt_stat::__unused4
uint64_t __unused4[2]
Definition: linux.hh:67
gem5::SparcLinux::TGT_SIGXCPU
static const int TGT_SIGXCPU
Definition: linux.hh:123
gem5::Sparc32Linux::tgt_sysinfo::freeram
uint32_t freeram
Definition: linux.hh:278
gem5::SparcLinux::TGT_SIGILL
static const int TGT_SIGILL
Definition: linux.hh:101
gem5::SparcISA::MISCREG_CWP
@ MISCREG_CWP
Definition: misc.hh:68
gem5::SparcLinux::tgt_sysinfo
Definition: linux.hh:171
gem5::SparcLinux::TGT_MAP_STACK
static constexpr unsigned TGT_MAP_STACK
Definition: linux.hh:166
gem5::SparcLinux::tgt_stat64
Definition: linux.hh:70
gem5::Sparc32Linux::TGT_RLIMIT_NOFILE
static const unsigned TGT_RLIMIT_NOFILE
Definition: linux.hh:291
gem5::SparcLinux::TGT_TCGETS
static const unsigned TGT_TCGETS
Definition: linux.hh:194
gem5::SparcLinux::TGT_TCGETA
static const unsigned TGT_TCGETA
ioctl() command codes.
Definition: linux.hh:192
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: decoder.cc:40
gem5::SparcLinux::TGT_TIOCGETP
static const unsigned TGT_TIOCGETP
Definition: linux.hh:196
gem5::SparcLinux::tgt_stat64::st_mtimeX
uint64_t st_mtimeX
Definition: linux.hh:88
gem5::SparcLinux::TGT_SIGCONT
static const int TGT_SIGCONT
Definition: linux.hh:117
gem5::SparcLinux::TGT_SIGPWR
static const int TGT_SIGPWR
Definition: linux.hh:129
gem5::Sparc32Linux::tgt_sysinfo::totalram
uint32_t totalram
Definition: linux.hh:277
gem5::SparcLinux::tgt_sysinfo::mem_unit
uint64_t mem_unit
Definition: linux.hh:184
gem5::SparcLinux::tgt_stat64::st_nlink
uint64_t st_nlink
Definition: linux.hh:74
gem5::SparcLinux::tgt_stat64::st_mode
uint32_t st_mode
Definition: linux.hh:76
gem5::SparcLinux::TGT_SIGVTALRM
static const int TGT_SIGVTALRM
Definition: linux.hh:125
gem5::SparcLinux::TGT_SIGTTIN
static const int TGT_SIGTTIN
Definition: linux.hh:119
gem5::SparcLinux::TGT_SIGPROF
static const int TGT_SIGPROF
Definition: linux.hh:126
gem5::SparcLinux::TGT_MAP_NONBLOCK
static constexpr unsigned TGT_MAP_NONBLOCK
Definition: linux.hh:163
gem5::SparcLinux::TGT_SIGSYS
static const int TGT_SIGSYS
Definition: linux.hh:110
gem5::SparcLinux::TGT_O_WRONLY
static constexpr int TGT_O_WRONLY
O_WRONLY.
Definition: linux.hh:134
thread_context.hh
gem5::SparcLinux::tgt_stat::st_uid
uint32_t st_uid
Definition: linux.hh:57
gem5::SparcLinux::tgt_stat::st_blksize
int64_t st_blksize
Definition: linux.hh:65
gem5::SparcLinux::TGT_SIGINT
static const int TGT_SIGINT
Definition: linux.hh:99
gem5::SparcLinux::TGT_SIGSEGV
static const int TGT_SIGSEGV
Definition: linux.hh:109
gem5::Sparc32Linux::TGT_RLIMIT_NPROC
static const unsigned TGT_RLIMIT_NPROC
Resource constants for getrlimit() (overide some generics).
Definition: linux.hh:290
gem5::SparcLinux::tgt_stat64::st_ctimeX
uint64_t st_ctimeX
Definition: linux.hh:90
gem5::ThreadContext::setMiscRegNoEffect
virtual void setMiscRegNoEffect(RegIndex misc_reg, RegVal val)=0
flag_tables.hh
gem5::SparcLinux::tgt_sysinfo::loads
uint64_t loads[3]
Definition: linux.hh:174
gem5::Sparc32Linux::tgt_sysinfo::totalhigh
uint32_t totalhigh
Definition: linux.hh:284

Generated on Tue Sep 21 2021 12:24:36 for gem5 by doxygen 1.8.17