45 #ifndef __ARCH_ARM_LINUX_LINUX_HH__ 46 #define __ARCH_ARM_LINUX_LINUX_HH__ 60 uint64_t
stack, uint64_t tls)
76 static const int TGT_SIGHUP = 0x000001;
77 static const int TGT_SIGINT = 0x000002;
78 static const int TGT_SIGQUIT = 0x000003;
79 static const int TGT_SIGILL = 0x000004;
80 static const int TGT_SIGTRAP = 0x000005;
81 static const int TGT_SIGABRT = 0x000006;
82 static const int TGT_SIGIOT = 0x000006;
83 static const int TGT_SIGBUS = 0x000007;
84 static const int TGT_SIGFPE = 0x000008;
85 static const int TGT_SIGKILL = 0x000009;
86 static const int TGT_SIGUSR1 = 0x00000a;
87 static const int TGT_SIGSEGV = 0x00000b;
88 static const int TGT_SIGUSR2 = 0x00000c;
89 static const int TGT_SIGPIPE = 0x00000d;
90 static const int TGT_SIGALRM = 0x00000e;
91 static const int TGT_SIGTERM = 0x00000f;
92 static const int TGT_SIGSTKFLT = 0x000010;
93 static const int TGT_SIGCHLD = 0x000011;
94 static const int TGT_SIGCONT = 0x000012;
95 static const int TGT_SIGSTOP = 0x000013;
96 static const int TGT_SIGTSTP = 0x000014;
97 static const int TGT_SIGTTIN = 0x000015;
98 static const int TGT_SIGTTOU = 0x000016;
99 static const int TGT_SIGURG = 0x000017;
100 static const int TGT_SIGXCPU = 0x000018;
101 static const int TGT_SIGXFSZ = 0x000019;
102 static const int TGT_SIGVTALRM = 0x00001a;
103 static const int TGT_SIGPROF = 0x00001b;
104 static const int TGT_SIGWINCH = 0x00001c;
105 static const int TGT_SIGIO = 0x00001d;
106 static const int TGT_SIGPOLL = 0x00001d;
107 static const int TGT_SIGPWR = 0x00001e;
108 static const int TGT_SIGSYS = 0x00001f;
109 static const int TGT_SIGUNUSED = 0x00001f;
127 static const int TGT_O_RDONLY = 000000000;
129 static const int TGT_O_WRONLY = 000000001;
130 static const int TGT_O_RDWR = 000000002;
131 static const int TGT_O_CREAT = 000000100;
132 static const int TGT_O_EXCL = 000000200;
133 static const int TGT_O_NOCTTY = 000000400;
134 static const int TGT_O_TRUNC = 000001000;
135 static const int TGT_O_APPEND = 000002000;
136 static const int TGT_O_NONBLOCK = 000004000;
137 static const int TGT_O_DSYNC = 000010000;
138 static const int TGT_FASYNC = 000020000;
139 static const int TGT_O_DIRECT = 000200000;
140 static const int TGT_O_LARGEFILE = 000400000;
141 static const int TGT_O_DIRECTORY = 000040000;
142 static const int TGT_O_NOFOLLOW = 000100000;
143 static const int TGT_O_NOATIME = 001000000;
144 static const int TGT_O_CLOEXEC = 002000000;
145 static const int TGT_O_SYNC = 004010000;
146 static const int TGT_O_PATH = 010000000;
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 = 0x00100;
156 static const unsigned TGT_MAP_HUGETLB = 0x40000;
157 static const unsigned TGT_MAP_LOCKED = 0x02000;
158 static const unsigned TGT_MAP_NONBLOCK = 0x10000;
159 static const unsigned TGT_MAP_NORESERVE = 0x04000;
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;
168 static const int TBL_SYSINFO = 12;
229 uint32_t st_atime_nsec;
231 uint32_t st_mtime_nsec;
233 uint32_t st_ctime_nsec;
284 uint64_t
stack, uint64_t tls)
297 static const int TGT_SIGHUP = 0x000001;
298 static const int TGT_SIGINT = 0x000002;
299 static const int TGT_SIGQUIT = 0x000003;
300 static const int TGT_SIGILL = 0x000004;
301 static const int TGT_SIGTRAP = 0x000005;
302 static const int TGT_SIGABRT = 0x000006;
303 static const int TGT_SIGIOT = 0x000006;
304 static const int TGT_SIGBUS = 0x000007;
305 static const int TGT_SIGFPE = 0x000008;
306 static const int TGT_SIGKILL = 0x000009;
307 static const int TGT_SIGUSR1 = 0x00000a;
308 static const int TGT_SIGSEGV = 0x00000b;
309 static const int TGT_SIGUSR2 = 0x00000c;
310 static const int TGT_SIGPIPE = 0x00000d;
311 static const int TGT_SIGALRM = 0x00000e;
312 static const int TGT_SIGTERM = 0x00000f;
313 static const int TGT_SIGSTKFLT = 0x000010;
314 static const int TGT_SIGCHLD = 0x000011;
315 static const int TGT_SIGCONT = 0x000012;
316 static const int TGT_SIGSTOP = 0x000013;
317 static const int TGT_SIGTSTP = 0x000014;
318 static const int TGT_SIGTTIN = 0x000015;
319 static const int TGT_SIGTTOU = 0x000016;
320 static const int TGT_SIGURG = 0x000017;
321 static const int TGT_SIGXCPU = 0x000018;
322 static const int TGT_SIGXFSZ = 0x000019;
323 static const int TGT_SIGVTALRM = 0x00001a;
324 static const int TGT_SIGPROF = 0x00001b;
325 static const int TGT_SIGWINCH = 0x00001c;
326 static const int TGT_SIGIO = 0x00001d;
327 static const int TGT_SIGPOLL = 0x00001d;
328 static const int TGT_SIGPWR = 0x00001e;
329 static const int TGT_SIGSYS = 0x00001f;
330 static const int TGT_SIGUNUSED = 0x00001f;
348 static const int TGT_O_RDONLY = 000000000;
350 static const int TGT_O_WRONLY = 000000001;
351 static const int TGT_O_RDWR = 000000002;
352 static const int TGT_O_CREAT = 000000100;
353 static const int TGT_O_EXCL = 000000200;
354 static const int TGT_O_NOCTTY = 000000400;
355 static const int TGT_O_TRUNC = 000001000;
356 static const int TGT_O_APPEND = 000002000;
357 static const int TGT_O_NONBLOCK = 000004000;
358 static const int TGT_O_DSYNC = 000010000;
359 static const int TGT_FASYNC = 000020000;
360 static const int TGT_O_DIRECT = 000200000;
361 static const int TGT_O_LARGEFILE = 000400000;
362 static const int TGT_O_DIRECTORY = 000040000;
363 static const int TGT_O_NOFOLLOW = 000100000;
364 static const int TGT_O_NOATIME = 001000000;
365 static const int TGT_O_CLOEXEC = 002000000;
366 static const int TGT_O_SYNC = 004010000;
367 static const int TGT_O_PATH = 010000000;
373 static const unsigned TGT_MAP_SHARED = 0x00001;
374 static const unsigned TGT_MAP_PRIVATE = 0x00002;
375 static const unsigned TGT_MAP_ANON = 0x00020;
376 static const unsigned TGT_MAP_DENYWRITE = 0x00800;
377 static const unsigned TGT_MAP_EXECUTABLE = 0x01000;
378 static const unsigned TGT_MAP_FILE = 0x00000;
379 static const unsigned TGT_MAP_GROWSDOWN = 0x00100;
380 static const unsigned TGT_MAP_HUGETLB = 0x40000;
381 static const unsigned TGT_MAP_LOCKED = 0x02000;
382 static const unsigned TGT_MAP_NONBLOCK = 0x10000;
383 static const unsigned TGT_MAP_NORESERVE = 0x04000;
384 static const unsigned TGT_MAP_POPULATE = 0x08000;
385 static const unsigned TGT_MAP_STACK = 0x20000;
386 static const unsigned TGT_MAP_ANONYMOUS = 0x00020;
387 static const unsigned TGT_MAP_FIXED = 0x00010;
399 static const unsigned TIOCGETP_ = 0x5401;
401 static const unsigned TIOCSETP_ = 0x80067409;
402 static const unsigned TIOCSETN_ = 0x8006740a;
403 static const unsigned TIOCSETC_ = 0x80067411;
404 static const unsigned TIOCGETC_ = 0x40067412;
405 static const unsigned FIONREAD_ = 0x4004667f;
406 static const unsigned TIOCISATTY_ = 0x2000745e;
407 static const unsigned TIOCGETS_ = 0x402c7413;
408 static const unsigned TIOCGETA_ = 0x5405;
409 static const unsigned TCSETAW_ = 0x5407;
413 static const int TBL_SYSINFO = 12;
540 uint64_t
stack, uint64_t tls)
int32_t ru_msgrcv
messages received
virtual void setMiscReg(RegIndex misc_reg, RegVal val)=0
Limit struct for getrlimit/setrlimit.
uint64_t rlim_max
hard limit
int64_t ru_idrss
integral unshared data "
static const unsigned TGT_RLIMIT_FSIZE
static void archClone(uint64_t flags, Process *pp, Process *cp, ThreadContext *ptc, ThreadContext *ctc, uint64_t stack, uint64_t tls)
int32_t ru_ixrss
integral shared memory size
int32_t tms_cstime
system time of children
int64_t tv_nsec
nanoseconds
int64_t ru_nsignals
signals received
int32_t ru_idrss
integral unshared data "
int32_t tv_nsec
nanoseconds
int32_t ru_nvcsw
voluntary context switches
static const unsigned NUM_MMAP_FLAGS
int32_t ru_minflt
page reclaims - total vmfaults
const char * __attribute__((weak)) m5MainCommands[]
static const unsigned TGT_RLIMIT_DATA
int64_t ru_msgrcv
messages received
static const unsigned TGT_RLIMIT_RSS
int64_t tms_cstime
system time of children
int32_t ru_nsignals
signals received
int32_t ru_oublock
block output operations
static const int NUM_OPEN_FLAGS
Number of entries in openFlagTable[].
static void archClone(uint64_t flags, Process *pp, Process *cp, ThreadContext *ptc, ThreadContext *ctc, uint64_t stack, uint64_t tls)
static const unsigned NUM_MMAP_FLAGS
int32_t ru_majflt
page faults
ThreadContext is the external interface to all thread state for anything outside of the CPU...
int64_t ru_ixrss
integral shared memory size
static const unsigned TGT_RLIMIT_MEMLOCK
int64_t ru_isrss
integral unshared stack "
uint32_t rlim_cur
soft limit
uint32_t rlim_max
hard limit
static const unsigned TGT_RLIMIT_AS
int64_t tms_utime
user time
static const int TGT_RUSAGE_SELF
For getrusage().
static const unsigned TGT_RLIMIT_NOFILE
int64_t ru_oublock
block output operations
int32_t ru_inblock
block input operations
int64_t ru_nivcsw
involuntary "
int32_t tv_usec
microseconds
int32_t ru_nivcsw
involuntary "
Limit struct for getrlimit/setrlimit.
static const unsigned TGT_CLONE_SETTLS
void tgt_stat
Stat buffer.
int64_t tv_usec
microseconds
static const unsigned TGT_RLIMIT_CORE
static const unsigned TGT_RLIMIT_NPROC
int64_t ru_nvcsw
voluntary context switches
rlimit_resources
Resource enumeration for getrlimit().
int64_t tms_cutime
user time of children
static const unsigned TGT_RLIMIT_CPU
Resource constants for getrlimit().
static const unsigned TGT_RLIMIT_STACK
int64_t ru_msgsnd
messages sent
virtual void setIntReg(RegIndex reg_idx, RegVal val)=0
int64_t ru_majflt
page faults
This struct is used to build target-OS-dependent tables that map the target's flags to the host's fla...
uint64_t rlim_cur
soft limit
int64_t ru_inblock
block input operations
int64_t tms_stime
system time
int32_t ru_isrss
integral unshared stack "
int32_t tms_stime
system time
static const int TGT_RUSAGE_BOTH
int32_t tms_utime
user time
static const unsigned TGT_RLIMIT_LOCKS
int32_t ru_msgsnd
messages sent
static const ByteOrder byteOrder
static const int TGT_RUSAGE_CHILDREN
int32_t tms_cutime
user time of children
static const int NUM_OPEN_FLAGS
Number of entries in openFlagTable[].
void copyRegs(ThreadContext *src, ThreadContext *dest)
static void archClone(uint64_t flags, Process *pp, Process *cp, ThreadContext *ptc, ThreadContext *ctc, uint64_t stack, uint64_t tls)
uint64_t size_t
Basic Linux types.
int64_t ru_minflt
page reclaims - total vmfaults