gem5 v24.0.0.0
Loading...
Searching...
No Matches
linux.hh
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated
11 * unmodified and in its entirety in all distributions of the software,
12 * modified or unmodified, in source code or in binary form.
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions are
16 * met: redistributions of source code must retain the above copyright
17 * notice, this list of conditions and the following disclaimer;
18 * redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer in the
20 * documentation and/or other materials provided with the distribution;
21 * neither the name of the copyright holders nor the names of its
22 * contributors may be used to endorse or promote products derived from
23 * this software without specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 */
37
38#ifndef __ARCH_X86_LINUX_LINUX_HH__
39#define __ARCH_X86_LINUX_LINUX_HH__
40
41#include <map>
42
43#include "arch/x86/regs/int.hh"
44#include "arch/x86/regs/misc.hh"
45#include "arch/x86/utility.hh"
46#include "base/compiler.hh"
48#include "kern/linux/linux.hh"
49#include "sim/guest_abi.hh"
50#include "sim/syscall_return.hh"
51
52namespace gem5
53{
54
55class X86Linux : public Linux
56{
57 public:
58 static const ByteOrder byteOrder = ByteOrder::little;
59
60 static void
61 archClone(uint64_t flags,
62 Process *pp, Process *cp,
64 uint64_t stack, uint64_t tls)
65 {
66 ctc->getIsaPtr()->copyRegsFrom(ptc);
67
68 if (flags & TGT_CLONE_SETTLS) {
71 }
72
73 if (stack)
75 }
76
77 class SyscallABI {};
78};
79
80namespace guest_abi
81{
82
83template <typename ABI>
85 typename std::enable_if_t<std::is_base_of_v<X86Linux::SyscallABI, ABI>>>
86{
87 static void
89 {
91 }
92};
93
94} // namespace guest_abi
95
96class X86Linux64 : public X86Linux, public OpenFlagTable<X86Linux64>
97{
98 public:
99
101 {
102 uint64_t st_dev;
103 uint64_t st_ino;
104 uint64_t st_nlink;
105 uint32_t st_mode;
106 uint32_t st_uid;
107 uint32_t st_gid;
108 uint32_t __pad0;
109 uint64_t st_rdev;
110 int64_t st_size;
111 int64_t st_blksize;
112 int64_t st_blocks;
113 uint64_t st_atimeX;
115 uint64_t st_mtimeX;
117 uint64_t st_ctimeX;
119 int64_t unused0[3];
120 };
121
123 {
124 /* 0x00 */
125 uint32_t stx_mask;
126 uint32_t stx_blksize;
128 /* 0x10 */
129 uint32_t stx_nlink;
130 uint32_t stx_uid;
131 uint32_t stx_gid;
132 uint16_t stx_mode;
133 uint16_t stx_spare0;
134 /* 0x20 */
135 uint64_t stx_ino;
136 uint64_t stx_size;
137 uint64_t stx_blocks;
139 /* 0x40 */
140 uint64_t stx_atimeX;
143 uint64_t stx_btimeX;
146 uint64_t stx_ctimeX;
149 uint64_t stx_mtimeX;
152 /* 0x80 */
157 /* 0x90 */
158 uint64_t stx_mnt_id;
159 uint64_t stx_spare2;
160 /* 0xa0 */
161 uint64_t stx_spare3[12];
162 /* 0x100 */
163 };
164
165 struct tgt_fsid
166 {
167 long val[2];
168 };
169
171 {
172 long f_type;
182 long f_spare[5];
183 };
184
185 static const int TGT_SIGHUP = 0x000001;
186 static const int TGT_SIGINT = 0x000002;
187 static const int TGT_SIGQUIT = 0x000003;
188 static const int TGT_SIGILL = 0x000004;
189 static const int TGT_SIGTRAP = 0x000005;
190 static const int TGT_SIGABRT = 0x000006;
191 static const int TGT_SIGIOT = 0x000006;
192 static const int TGT_SIGBUS = 0x000007;
193 static const int TGT_SIGFPE = 0x000008;
194 static const int TGT_SIGKILL = 0x000009;
195 static const int TGT_SIGUSR1 = 0x00000a;
196 static const int TGT_SIGSEGV = 0x00000b;
197 static const int TGT_SIGUSR2 = 0x00000c;
198 static const int TGT_SIGPIPE = 0x00000d;
199 static const int TGT_SIGALRM = 0x00000e;
200 static const int TGT_SIGTERM = 0x00000f;
201 static const int TGT_SIGSTKFLT = 0x000010;
202 static const int TGT_SIGCHLD = 0x000011;
203 static const int TGT_SIGCONT = 0x000012;
204 static const int TGT_SIGSTOP = 0x000013;
205 static const int TGT_SIGTSTP = 0x000014;
206 static const int TGT_SIGTTIN = 0x000015;
207 static const int TGT_SIGTTOU = 0x000016;
208 static const int TGT_SIGURG = 0x000017;
209 static const int TGT_SIGXCPU = 0x000018;
210 static const int TGT_SIGXFSZ = 0x000019;
211 static const int TGT_SIGVTALRM = 0x00001a;
212 static const int TGT_SIGPROF = 0x00001b;
213 static const int TGT_SIGWINCH = 0x00001c;
214 static const int TGT_SIGIO = 0x00001d;
215 static const int TGT_SIGPOLL = 0x00001d;
216 static const int TGT_SIGPWR = 0x00001e;
217 static const int TGT_SIGSYS = 0x00001f;
218 static const int TGT_SIGUNUSED = 0x00001f;
219
220 static constexpr int TGT_O_RDONLY = 000000000;
221 static constexpr int TGT_O_WRONLY = 000000001;
222 static constexpr int TGT_O_RDWR = 000000002;
223 static constexpr int TGT_O_CREAT = 000000100;
224 static constexpr int TGT_O_EXCL = 000000200;
225 static constexpr int TGT_O_NOCTTY = 000000400;
226 static constexpr int TGT_O_TRUNC = 000001000;
227 static constexpr int TGT_O_APPEND = 000002000;
228 static constexpr int TGT_O_NONBLOCK = 000004000;
229 static constexpr int TGT_O_DSYNC = 000010000;
230 static constexpr int TGT_FASYNC = 000020000;
231 static constexpr int TGT_O_DIRECT = 000040000;
232 static constexpr int TGT_O_LARGEFILE = 000100000;
233 static constexpr int TGT_O_DIRECTORY = 000200000;
234 static constexpr int TGT_O_NOFOLLOW = 000400000;
235 static constexpr int TGT_O_NOATIME = 001000000;
236 static constexpr int TGT_O_CLOEXEC = 002000000;
237 static constexpr int TGT_O_SYNC = 004010000;
238 static constexpr int TGT_O_PATH = 010000000;
239
241
242 typedef uint64_t size_t;
243 typedef uint64_t off_t;
244 typedef int64_t time_t;
245 typedef int64_t clock_t;
247
248 static constexpr unsigned TGT_MAP_SHARED = 0x00001;
249 static constexpr unsigned TGT_MAP_PRIVATE = 0x00002;
250 static constexpr unsigned TGT_MAP_32BIT = 0x00040;
251 static constexpr unsigned TGT_MAP_ANON = 0x00020;
252 static constexpr unsigned TGT_MAP_DENYWRITE = 0x00800;
253 static constexpr unsigned TGT_MAP_EXECUTABLE = 0x01000;
254 static constexpr unsigned TGT_MAP_FILE = 0x00000;
255 static constexpr unsigned TGT_MAP_GROWSDOWN = 0x00100;
256 static constexpr unsigned TGT_MAP_HUGETLB = 0x40000;
257 static constexpr unsigned TGT_MAP_LOCKED = 0x02000;
258 static constexpr unsigned TGT_MAP_NONBLOCK = 0x10000;
259 static constexpr unsigned TGT_MAP_NORESERVE = 0x04000;
260 static constexpr unsigned TGT_MAP_POPULATE = 0x08000;
261 static constexpr unsigned TGT_MAP_STACK = 0x20000;
262 static constexpr unsigned TGT_MAP_ANONYMOUS = 0x00020;
263 static constexpr unsigned TGT_MAP_FIXED = 0x00010;
264
266 {
267 uint64_t iov_base; // void *
268 uint64_t iov_len; // size_t
269 };
270
272 {
273 int64_t uptime; /* Seconds since boot */
274 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */
275 uint64_t totalram; /* Total usable main memory size */
276 uint64_t freeram; /* Available memory size */
277 uint64_t sharedram; /* Amount of shared memory */
278 uint64_t bufferram; /* Memory used by buffers */
279 uint64_t totalswap; /* Total swap space size */
280 uint64_t freeswap; /* swap space still available */
281 uint16_t procs; /* Number of current processes */
282 uint64_t totalhigh; /* Total high memory size */
283 uint64_t freehigh; /* Available high memory size */
284 uint64_t mem_unit; /* Memory unit size in bytes */
285 };
286
288 {
289 uint64_t flags;
290 uint64_t pidfd;
291 uint64_t child_tid;
292 uint64_t parent_tid;
293 uint64_t exit_signal;
294 uint64_t stack;
295 uint64_t stack_size;
296 uint64_t tls;
297 uint64_t set_tid;
298 uint64_t set_tid_size;
299 uint64_t cgroup;
300 };
301
302};
303
304class X86Linux32 : public X86Linux, public OpenFlagTable<X86Linux32>
305{
306 public:
308 {
309 uint64_t st_dev;
310 uint8_t __pad0[4];
311 uint32_t __st_ino;
312 uint32_t st_mode;
313 uint32_t st_nlink;
314 uint32_t st_uid;
315 uint32_t st_gid;
316 uint64_t st_rdev;
317 uint8_t __pad3[4];
318 int64_t st_size;
319 uint32_t st_blksize;
320 uint64_t st_blocks;
321 uint32_t st_atimeX;
323 uint32_t st_mtimeX;
325 uint32_t st_ctimeX;
327 uint64_t st_ino;
328 };
329
330 static const int TGT_SIGHUP = 0x000001;
331 static const int TGT_SIGINT = 0x000002;
332 static const int TGT_SIGQUIT = 0x000003;
333 static const int TGT_SIGILL = 0x000004;
334 static const int TGT_SIGTRAP = 0x000005;
335 static const int TGT_SIGABRT = 0x000006;
336 static const int TGT_SIGIOT = 0x000006;
337 static const int TGT_SIGBUS = 0x000007;
338 static const int TGT_SIGFPE = 0x000008;
339 static const int TGT_SIGKILL = 0x000009;
340 static const int TGT_SIGUSR1 = 0x00000a;
341 static const int TGT_SIGSEGV = 0x00000b;
342 static const int TGT_SIGUSR2 = 0x00000c;
343 static const int TGT_SIGPIPE = 0x00000d;
344 static const int TGT_SIGALRM = 0x00000e;
345 static const int TGT_SIGTERM = 0x00000f;
346 static const int TGT_SIGSTKFLT = 0x000010;
347 static const int TGT_SIGCHLD = 0x000011;
348 static const int TGT_SIGCONT = 0x000012;
349 static const int TGT_SIGSTOP = 0x000013;
350 static const int TGT_SIGTSTP = 0x000014;
351 static const int TGT_SIGTTIN = 0x000015;
352 static const int TGT_SIGTTOU = 0x000016;
353 static const int TGT_SIGURG = 0x000017;
354 static const int TGT_SIGXCPU = 0x000018;
355 static const int TGT_SIGXFSZ = 0x000019;
356 static const int TGT_SIGVTALRM = 0x00001a;
357 static const int TGT_SIGPROF = 0x00001b;
358 static const int TGT_SIGWINCH = 0x00001c;
359 static const int TGT_SIGIO = 0x00001d;
360 static const int TGT_SIGPOLL = 0x00001d;
361 static const int TGT_SIGPWR = 0x00001e;
362 static const int TGT_SIGSYS = 0x00001f;
363 static const int TGT_SIGUNUSED = 0x00001f;
364
365 static constexpr int TGT_O_RDONLY = 000000000;
366 static constexpr int TGT_O_WRONLY = 000000001;
367 static constexpr int TGT_O_RDWR = 000000002;
368 static constexpr int TGT_O_CREAT = 000000100;
369 static constexpr int TGT_O_EXCL = 000000200;
370 static constexpr int TGT_O_NOCTTY = 000000400;
371 static constexpr int TGT_O_TRUNC = 000001000;
372 static constexpr int TGT_O_APPEND = 000002000;
373 static constexpr int TGT_O_NONBLOCK = 000004000;
374 static constexpr int TGT_O_DSYNC = 000010000;
375 static constexpr int TGT_FASYNC = 000020000;
376 static constexpr int TGT_O_DIRECT = 000040000;
377 static constexpr int TGT_O_LARGEFILE = 000100000;
378 static constexpr int TGT_O_DIRECTORY = 000200000;
379 static constexpr int TGT_O_NOFOLLOW = 000400000;
380 static constexpr int TGT_O_NOATIME = 001000000;
381 static constexpr int TGT_O_CLOEXEC = 002000000;
382 static constexpr int TGT_O_SYNC = 004010000;
383 static constexpr int TGT_O_PATH = 010000000;
384
385 static const std::map<int, int> mmapFlagTable;
386
388
389 typedef uint32_t size_t;
390 typedef uint32_t off_t;
391 typedef int32_t time_t;
392 typedef int32_t clock_t;
394
395 static constexpr unsigned TGT_MAP_SHARED = 0x00001;
396 static constexpr unsigned TGT_MAP_PRIVATE = 0x00002;
397 static constexpr unsigned TGT_MAP_32BIT = 0x00040;
398 static constexpr unsigned TGT_MAP_ANON = 0x00020;
399 static constexpr unsigned TGT_MAP_DENYWRITE = 0x00800;
400 static constexpr unsigned TGT_MAP_EXECUTABLE = 0x01000;
401 static constexpr unsigned TGT_MAP_FILE = 0x00000;
402 static constexpr unsigned TGT_MAP_GROWSDOWN = 0x00100;
403 static constexpr unsigned TGT_MAP_HUGETLB = 0x40000;
404 static constexpr unsigned TGT_MAP_LOCKED = 0x02000;
405 static constexpr unsigned TGT_MAP_NONBLOCK = 0x10000;
406 static constexpr unsigned TGT_MAP_NORESERVE = 0x04000;
407 static constexpr unsigned TGT_MAP_POPULATE = 0x08000;
408 static constexpr unsigned TGT_MAP_STACK = 0x20000;
409 static constexpr unsigned TGT_MAP_ANONYMOUS = 0x00020;
410 static constexpr unsigned TGT_MAP_FIXED = 0x00010;
411
413 {
414 int32_t uptime; /* Seconds since boot */
415 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */
416 uint32_t totalram; /* Total usable main memory size */
417 uint32_t freeram; /* Available memory size */
418 uint32_t sharedram; /* Amount of shared memory */
419 uint32_t bufferram; /* Memory used by buffers */
420 uint32_t totalswap; /* Total swap space size */
421 uint32_t freeswap; /* swap space still available */
422 uint16_t procs; /* Number of current processes */
423 uint32_t totalhigh; /* Total high memory size */
424 uint32_t freehigh; /* Available high memory size */
425 uint32_t mem_unit; /* Memory unit size in bytes */
426 };
427};
428
429} // namespace gem5
430
431#endif
virtual void copyRegsFrom(ThreadContext *src)=0
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...
Definition linux.hh:62
static const unsigned TGT_CLONE_SETTLS
Definition linux.hh:319
This class represents the return value from an emulated system call, including any errno setting.
int64_t encodedValue() const
The encoded value (as described above)
ThreadContext is the external interface to all thread state for anything outside of the CPU.
virtual void setMiscRegNoEffect(RegIndex misc_reg, RegVal val)=0
virtual BaseISA * getIsaPtr() const =0
virtual void setReg(const RegId &reg, RegVal val)
static const int TGT_SIGTTOU
Definition linux.hh:352
static constexpr unsigned TGT_MAP_NORESERVE
Definition linux.hh:406
static constexpr int TGT_O_CLOEXEC
Definition linux.hh:381
static constexpr int TGT_O_DIRECT
O_DIRECTIO.
Definition linux.hh:376
static constexpr int TGT_O_DIRECTORY
Definition linux.hh:378
static constexpr unsigned TGT_MAP_POPULATE
Definition linux.hh:407
static constexpr int TGT_O_NONBLOCK
O_NONBLOCK.
Definition linux.hh:373
static const int TGT_SIGVTALRM
Definition linux.hh:356
static const int TGT_SIGILL
Definition linux.hh:333
static const int TGT_SIGKILL
Definition linux.hh:339
static constexpr int TGT_O_EXCL
O_EXCL.
Definition linux.hh:369
static const int TGT_SIGTERM
Definition linux.hh:345
static constexpr unsigned TGT_MAP_FILE
Definition linux.hh:401
static const int TGT_SIGXFSZ
Definition linux.hh:355
static const int TGT_SIGFPE
Definition linux.hh:338
static constexpr int TGT_O_CREAT
O_CREAT.
Definition linux.hh:368
static constexpr unsigned TGT_MAP_PRIVATE
Definition linux.hh:396
static constexpr unsigned TGT_MAP_STACK
Definition linux.hh:408
static constexpr unsigned TGT_MAP_32BIT
Definition linux.hh:397
uint32_t off_t
Definition linux.hh:390
static const int TGT_SIGSTKFLT
Definition linux.hh:346
static constexpr unsigned TGT_MAP_ANONYMOUS
Definition linux.hh:409
static constexpr int TGT_O_RDONLY
O_RDONLY.
Definition linux.hh:365
static constexpr int TGT_O_RDWR
O_RDWR.
Definition linux.hh:367
static constexpr unsigned TGT_MAP_FIXED
Definition linux.hh:410
static const int TGT_SIGTRAP
Definition linux.hh:334
static const int TGT_SIGIO
Definition linux.hh:359
static constexpr int TGT_O_WRONLY
O_WRONLY.
Definition linux.hh:366
static const int TGT_SIGXCPU
Definition linux.hh:354
static const int TGT_SIGHUP
Definition linux.hh:330
static const int TGT_SIGPOLL
Definition linux.hh:360
static constexpr int TGT_O_PATH
Definition linux.hh:383
static constexpr int TGT_O_TRUNC
O_TRUNC.
Definition linux.hh:371
static constexpr int TGT_O_LARGEFILE
Definition linux.hh:377
static constexpr int TGT_O_NOATIME
Definition linux.hh:380
static const int TGT_SIGSYS
Definition linux.hh:362
int32_t clock_t
Definition linux.hh:392
static const int TGT_SIGURG
Definition linux.hh:353
static const int TGT_SIGPWR
Definition linux.hh:361
static constexpr int TGT_O_DSYNC
O_DSYNC.
Definition linux.hh:374
static const int TGT_SIGTSTP
Definition linux.hh:350
static const int TGT_SIGSEGV
Definition linux.hh:341
static const int TGT_SIGBUS
Definition linux.hh:337
uint32_t size_t
Basic X86 Linux types.
Definition linux.hh:389
static const int TGT_SIGUSR2
Definition linux.hh:342
static constexpr unsigned TGT_MAP_GROWSDOWN
Definition linux.hh:402
static const int TGT_SIGQUIT
Definition linux.hh:332
static constexpr unsigned TGT_MAP_ANON
Definition linux.hh:398
static const int TGT_SIGTTIN
Definition linux.hh:351
static constexpr unsigned TGT_MAP_DENYWRITE
Definition linux.hh:399
static constexpr unsigned TGT_MAP_NONBLOCK
Definition linux.hh:405
static constexpr int TGT_O_SYNC
O_SYNC.
Definition linux.hh:382
static constexpr unsigned TGT_MAP_HUGETLB
Definition linux.hh:403
static const int TGT_SIGUNUSED
Definition linux.hh:363
static constexpr unsigned TGT_MAP_LOCKED
Definition linux.hh:404
static const int TGT_SIGINT
Definition linux.hh:331
int32_t time_t
Definition linux.hh:391
static constexpr int TGT_O_NOCTTY
O_NOCTTY.
Definition linux.hh:370
static constexpr int TGT_O_APPEND
O_APPEND.
Definition linux.hh:372
static const int TGT_SIGABRT
Definition linux.hh:335
static const int TGT_SIGALRM
Definition linux.hh:344
static const int TGT_SIGPROF
Definition linux.hh:357
static constexpr int TGT_O_NOFOLLOW
Definition linux.hh:379
static const int TGT_SIGPIPE
Definition linux.hh:343
static const int TGT_SIGUSR1
Definition linux.hh:340
static const int TGT_SIGWINCH
Definition linux.hh:358
static constexpr unsigned TGT_MAP_EXECUTABLE
Definition linux.hh:400
static const int TGT_SIGCHLD
Definition linux.hh:347
static constexpr unsigned TGT_MAP_SHARED
Definition linux.hh:395
static constexpr int TGT_FASYNC
Definition linux.hh:375
static const int TGT_SIGSTOP
Definition linux.hh:349
static const int TGT_SIGCONT
Definition linux.hh:348
static const std::map< int, int > mmapFlagTable
Definition linux.hh:385
static const int TGT_SIGIOT
Definition linux.hh:336
static const int TGT_SIGSYS
Definition linux.hh:217
static constexpr int TGT_O_DSYNC
Definition linux.hh:229
static constexpr unsigned TGT_MAP_ANONYMOUS
Definition linux.hh:262
static const int TGT_SIGUNUSED
Definition linux.hh:218
static constexpr int TGT_O_DIRECTORY
Definition linux.hh:233
static const int TGT_SIGQUIT
Definition linux.hh:187
static const int TGT_SIGABRT
Definition linux.hh:190
uint64_t off_t
Definition linux.hh:243
static constexpr unsigned TGT_MAP_EXECUTABLE
Definition linux.hh:253
static const int TGT_SIGTRAP
Definition linux.hh:189
static constexpr int TGT_O_EXCL
O_EXCL.
Definition linux.hh:224
static constexpr int TGT_O_RDWR
O_RDWR.
Definition linux.hh:222
static const int TGT_SIGALRM
Definition linux.hh:199
static constexpr int TGT_O_NOFOLLOW
Definition linux.hh:234
static const int TGT_SIGSTKFLT
Definition linux.hh:201
static const int TGT_SIGUSR2
Definition linux.hh:197
static const int TGT_SIGILL
Definition linux.hh:188
static const int TGT_SIGSTOP
Definition linux.hh:204
static const int TGT_SIGFPE
Definition linux.hh:193
static constexpr unsigned TGT_MAP_HUGETLB
Definition linux.hh:256
static constexpr int TGT_O_CLOEXEC
Definition linux.hh:236
static constexpr int TGT_O_NOATIME
Definition linux.hh:235
int64_t clock_t
Definition linux.hh:245
static const int TGT_SIGURG
Definition linux.hh:208
static const int TGT_SIGSEGV
Definition linux.hh:196
static const int TGT_SIGUSR1
Definition linux.hh:195
static const int TGT_SIGTSTP
Definition linux.hh:205
static const int TGT_SIGPOLL
Definition linux.hh:215
static const int TGT_SIGPROF
Definition linux.hh:212
static constexpr int TGT_O_LARGEFILE
Definition linux.hh:232
static const int TGT_SIGCONT
Definition linux.hh:203
uint64_t size_t
Basic X86_64 Linux types.
Definition linux.hh:242
static constexpr int TGT_O_CREAT
O_CREAT.
Definition linux.hh:223
static constexpr int TGT_O_APPEND
O_APPEND.
Definition linux.hh:227
static const int TGT_SIGPIPE
Definition linux.hh:198
static const int TGT_SIGINT
Definition linux.hh:186
static constexpr int TGT_O_SYNC
O_SYNC.
Definition linux.hh:237
static constexpr int TGT_O_NONBLOCK
O_NONBLOCK.
Definition linux.hh:228
static constexpr int TGT_O_RDONLY
O_RDONLY.
Definition linux.hh:220
int64_t time_t
Definition linux.hh:244
static const int TGT_SIGHUP
Definition linux.hh:185
static const int TGT_SIGXFSZ
Definition linux.hh:210
static constexpr unsigned TGT_MAP_SHARED
Definition linux.hh:248
static const int TGT_SIGXCPU
Definition linux.hh:209
static const int TGT_SIGTTOU
Definition linux.hh:207
static const int TGT_SIGPWR
Definition linux.hh:216
static constexpr unsigned TGT_MAP_STACK
Definition linux.hh:261
static const int TGT_SIGVTALRM
Definition linux.hh:211
static constexpr unsigned TGT_MAP_NONBLOCK
Definition linux.hh:258
static constexpr unsigned TGT_MAP_FILE
Definition linux.hh:254
static const int TGT_SIGTERM
Definition linux.hh:200
static constexpr unsigned TGT_MAP_GROWSDOWN
Definition linux.hh:255
static constexpr unsigned TGT_MAP_FIXED
Definition linux.hh:263
static const int TGT_SIGCHLD
Definition linux.hh:202
static const int TGT_SIGKILL
Definition linux.hh:194
static constexpr int TGT_O_WRONLY
O_WRONLY.
Definition linux.hh:221
static const int TGT_SIGWINCH
Definition linux.hh:213
static constexpr unsigned TGT_MAP_POPULATE
Definition linux.hh:260
static constexpr unsigned TGT_MAP_LOCKED
Definition linux.hh:257
static constexpr int TGT_FASYNC
Definition linux.hh:230
static const int TGT_SIGIO
Definition linux.hh:214
static constexpr unsigned TGT_MAP_DENYWRITE
Definition linux.hh:252
static constexpr int TGT_O_PATH
Definition linux.hh:238
static const int TGT_SIGBUS
Definition linux.hh:192
static constexpr unsigned TGT_MAP_ANON
Definition linux.hh:251
static const int TGT_SIGTTIN
Definition linux.hh:206
static constexpr unsigned TGT_MAP_32BIT
Definition linux.hh:250
static constexpr unsigned TGT_MAP_NORESERVE
Definition linux.hh:259
static constexpr int TGT_O_NOCTTY
O_NOCTTY.
Definition linux.hh:225
static constexpr int TGT_O_TRUNC
O_TRUNC.
Definition linux.hh:226
static constexpr unsigned TGT_MAP_PRIVATE
Definition linux.hh:249
static constexpr int TGT_O_DIRECT
O_DIRECTIO.
Definition linux.hh:231
static const int TGT_SIGIOT
Definition linux.hh:191
static const ByteOrder byteOrder
Definition linux.hh:58
static void archClone(uint64_t flags, Process *pp, Process *cp, ThreadContext *ptc, ThreadContext *ctc, uint64_t stack, uint64_t tls)
Definition linux.hh:61
uint8_t flags
Definition helpers.cc:87
Bitfield< 7, 0 > ptc
constexpr RegId Rax
Definition int.hh:132
constexpr RegId Rsp
Definition int.hh:136
Bitfield< 17, 16 > stack
Definition misc.hh:602
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Definition binary32.hh:36
Overload hash function for BasicBlockRange type.
Definition binary32.hh:81
PM4 packets.
uint64_t stx_spare3[12]
Definition linux.hh:161

Generated on Tue Jun 18 2024 16:24:04 for gem5 by doxygen 1.11.0