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

Generated on Wed Sep 30 2020 14:02:00 for gem5 by doxygen 1.8.17