gem5  v20.1.0.0
process.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2005 The Regents of The University of Michigan
3  * Copyright (c) 2007-2008 The Florida State University
4  * Copyright (c) 2009 The University of Edinburgh
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are
9  * met: redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer;
11  * redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution;
14  * neither the name of the copyright holders nor the names of its
15  * contributors may be used to endorse or promote products derived from
16  * this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  */
30 
32 
33 #include "arch/power/isa_traits.hh"
36 #include "base/trace.hh"
37 #include "cpu/thread_context.hh"
38 #include "kern/linux/linux.hh"
39 #include "sim/process.hh"
40 #include "sim/syscall_desc.hh"
41 #include "sim/syscall_emul.hh"
42 #include "sim/system.hh"
43 
44 using namespace std;
45 using namespace PowerISA;
46 
47 namespace
48 {
49 
50 class PowerLinuxObjectFileLoader : public Process::Loader
51 {
52  public:
53  Process *
54  load(ProcessParams *params, ::Loader::ObjectFile *obj_file) override
55  {
56  if (obj_file->getArch() != ::Loader::Power)
57  return nullptr;
58 
59  auto opsys = obj_file->getOpSys();
60 
61  if (opsys == ::Loader::UnknownOpSys) {
62  warn("Unknown operating system; assuming Linux.");
63  opsys = ::Loader::Linux;
64  }
65 
66  if (opsys != ::Loader::Linux)
67  return nullptr;
68 
69  return new PowerLinuxProcess(params, obj_file);
70  }
71 };
72 
73 PowerLinuxObjectFileLoader loader;
74 
75 } // anonymous namespace
76 
78 static SyscallReturn
80 {
81  auto process = tc->getProcessPtr();
82 
83  strcpy(name->sysname, "Linux");
84  strcpy(name->nodename, "sim.gem5.org");
85  strcpy(name->release, process->release.c_str());
86  strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003");
87  strcpy(name->machine, "power");
88 
89  return 0;
90 }
91 
93  { 0, "syscall" },
94  { 1, "exit", exitFunc },
95  { 2, "fork" },
96  { 3, "read", readFunc<PowerLinux> },
97  { 4, "write", writeFunc<PowerLinux> },
98  { 5, "open", openFunc<PowerLinux> },
99  { 6, "close", closeFunc },
100  { 7, "waitpid" }, //???
101  { 8, "creat" },
102  { 9, "link" },
103  { 10, "unlink", unlinkFunc },
104  { 11, "execve" },
105  { 12, "chdir" },
106  { 13, "time", timeFunc<PowerLinux> },
107  { 14, "mknod" },
108  { 15, "chmod", chmodFunc<PowerLinux> },
109  { 16, "lchown", chownFunc },
110  { 17, "break", brkFunc }, //???
111  { 18, "unused#18" }, //???
112  { 19, "lseek", lseekFunc },
113  { 20, "getpid", getpidFunc },
114  { 21, "mount" },
115  { 22, "umount" },
116  { 23, "setuid", ignoreFunc },
117  { 24, "getuid", getuidFunc },
118  { 25, "stime" },
119  { 26, "ptrace" },
120  { 27, "alarm" },
121  { 28, "unused#28" },
122  { 29, "pause" },
123  { 30, "utime" },
124  { 31, "stty" },
125  { 32, "gtty" },
126  { 33, "access" },
127  { 34, "nice" },
128  { 35, "ftime" },
129  { 36, "sync" },
130  { 37, "kill", ignoreFunc },
131  { 38, "rename", renameFunc },
132  { 39, "mkdir" },
133  { 40, "rmdir" },
134  { 41, "dup", dupFunc },
135  { 42, "pipe" },
136  { 43, "times", timesFunc<PowerLinux> },
137  { 44, "prof" },
138  { 45, "brk", brkFunc },
139  { 46, "setgid" },
140  { 47, "getgid", getgidFunc },
141  { 48, "signal", ignoreFunc },
142  { 49, "geteuid", geteuidFunc },
143  { 50, "getegid", getegidFunc },
144  { 51, "acct" },
145  { 52, "umount2" },
146  { 53, "lock" },
147  { 54, "ioctl", ioctlFunc<PowerLinux> },
148  { 55, "fcntl", fcntlFunc },
149  { 56, "mpx" },
150  { 57, "setpgid" },
151  { 58, "ulimit" },
152  { 59, "unused#59" },
153  { 60, "umask", umaskFunc },
154  { 61, "chroot" },
155  { 62, "ustat" },
156  { 63, "dup2" },
157  { 64, "getppid", getpagesizeFunc },
158  { 65, "getpgrp" },
159  { 66, "setsid" },
160  { 67, "sigaction" },
161  { 68, "sgetmask" },
162  { 69, "ssetmask" },
163  { 70, "setreuid" },
164  { 71, "setregid" },
165  { 72, "sigsuspend" },
166  { 73, "sigpending" },
167  { 74, "sethostname", ignoreFunc },
168  { 75, "setrlimit", ignoreFunc },
169  { 76, "getrlimit" },
170  { 77, "getrusage", ignoreFunc },
171  { 78, "gettimeofday" },
172  { 79, "settimeofday" },
173  { 80, "getgroups" },
174  { 81, "setgroups" },
175  { 82, "reserved#82" },
176  { 83, "symlink" },
177  { 84, "unused#84" },
178  { 85, "readlink", readlinkFunc },
179  { 86, "uselib" },
180  { 87, "swapon", gethostnameFunc },
181  { 88, "reboot" },
182  { 89, "readdir" },
183  { 90, "mmap", mmapFunc<PowerLinux> },
184  { 91, "munmap",munmapFunc },
185  { 92, "truncate", truncateFunc },
186  { 93, "ftruncate", ftruncateFunc },
187  { 94, "fchmod" },
188  { 95, "fchown" },
189  { 96, "getpriority" },
190  { 97, "setpriority" },
191  { 98, "profil" },
192  { 99, "statfs" },
193  { 100, "fstatfs" },
194  { 101, "ioperm" },
195  { 102, "socketcall" },
196  { 103, "syslog" },
197  { 104, "setitimer" },
198  { 105, "getitimer" },
199  { 106, "stat", statFunc<PowerLinux> },
200  { 107, "lstat" },
201  { 108, "fstat", fstatFunc<PowerLinux> },
202  { 109, "unused#109" },
203  { 110, "iopl" },
204  { 111, "vhangup" },
205  { 112, "idle", ignoreFunc },
206  { 113, "vm86" },
207  { 114, "wait4" },
208  { 115, "swapoff" },
209  { 116, "sysinfo" },
210  { 117, "ipc" },
211  { 118, "fsync" },
212  { 119, "sigreturn" },
213  { 120, "clone" },
214  { 121, "setdomainname" },
215  { 122, "uname", unameFunc },
216  { 123, "modify_ldt" },
217  { 124, "adjtimex" },
218  { 125, "mprotect", ignoreFunc },
219  { 126, "sigprocmask" },
220  { 127, "create_module" },
221  { 128, "init_module" },
222  { 129, "delete_module" },
223  { 130, "get_kernel_syms" },
224  { 131, "quotactl" },
225  { 132, "getpgid" },
226  { 133, "fchdir" },
227  { 134, "bdflush" },
228  { 135, "sysfs" },
229  { 136, "personality" },
230  { 137, "afs_syscall" },
231  { 138, "setfsuid" },
232  { 139, "setfsgid" },
233  { 140, "llseek", _llseekFunc },
234  { 141, "getdents" },
235  { 142, "newselect" },
236  { 143, "flock" },
237  { 144, "msync" },
238  { 145, "readv" },
239  { 146, "writev", writevFunc<PowerLinux> },
240  { 147, "getsid" },
241  { 148, "fdatasync" },
242  { 149, "sysctl" },
243  { 150, "mlock" },
244  { 151, "munlock" },
245  { 152, "mlockall" },
246  { 153, "munlockall" },
247  { 154, "sched_setparam" },
248  { 155, "sched_getparam" },
249  { 156, "sched_setscheduler" },
250  { 157, "sched_getscheduler" },
251  { 158, "sched_yield" },
252  { 159, "sched_get_priority_max" },
253  { 160, "sched_get_priority_min" },
254  { 161, "sched_rr_get_interval" },
255  { 162, "nanosleep" },
256  { 163, "mremap" },
257  { 164, "setresuid" },
258  { 165, "getresuid" },
259  { 166, "vm862" },
260  { 167, "query_module" },
261  { 168, "poll" },
262  { 169, "nfsservctl" },
263  { 170, "setresgid" },
264  { 171, "getresgid" },
265  { 172, "prctl" },
266  { 173, "rt_sigaction", ignoreFunc },
267  { 174, "rt_sigprocmask" },
268  { 175, "unknown#175" },
269  { 176, "rt_sigpending" },
270  { 177, "rt_sigtimedwait" },
271  { 178, "rt_sigqueueinfo", ignoreFunc },
272  { 179, "rt_sigsuspend" },
273  { 180, "pread64" },
274  { 181, "pwrite64" },
275  { 182, "chown" },
276  { 183, "getcwd" },
277  { 184, "capget" },
278  { 185, "capset" },
279  { 186, "sigaltstack" },
280  { 187, "sendfile" },
281  { 188, "getpmsg" },
282  { 189, "putpmsg" },
283  { 190, "ugetrlimit", ignoreFunc },
284  { 191, "getrlimit" },
285  { 192, "mmap2", mmapFunc<PowerLinux> },
286  { 193, "truncate64" },
287  { 194, "ftruncate64", ftruncate64Func },
288  { 195, "stat64", stat64Func<PowerLinux> },
289  { 196, "lstat64", lstat64Func<PowerLinux> },
290  { 197, "fstat64", fstat64Func<PowerLinux> },
291  { 198, "lchown" },
292  { 199, "getuid", getuidFunc },
293  { 200, "getgid", getgidFunc },
294  { 201, "geteuid", geteuidFunc },
295  { 202, "getegid", getegidFunc },
296  { 203, "setreuid" },
297  { 204, "fcntl64", fcntl64Func },
298  { 205, "getgroups" },
299  { 206, "setgroups" },
300  { 207, "fchown" },
301  { 208, "setresuid" },
302  { 209, "getresuid" },
303  { 210, "setresgid" },
304  { 211, "getresgid" },
305  { 212, "chown" },
306  { 213, "setuid" },
307  { 214, "setgid" },
308  { 215, "setfsuid" },
309  { 216, "setfsgid" },
310  { 217, "getdents64" },
311  { 218, "pivot_root" },
312  { 219, "mincore" },
313  { 220, "madvise" },
314  { 221, "unknown#221" },
315  { 222, "tux" },
316  { 223, "unknown#223" },
317  { 224, "gettid" },
318  { 225, "readahead" },
319  { 226, "setxattr" },
320  { 227, "lsetxattr" },
321  { 228, "fsetxattr" },
322  { 229, "getxattr" },
323  { 230, "lgetxattr" },
324  { 231, "fgetxattr" },
325  { 232, "listxattr" },
326  { 233, "llistxattr" },
327  { 234, "exit_group", exitGroupFunc },
328  { 235, "removexattr" },
329  { 236, "lremovexattr" },
330  { 237, "fremovexattr" },
331  { 238, "tkill" },
332  { 239, "sendfile64" },
333  { 240, "futex" },
334  { 241, "sched_setaffinity" },
335  { 242, "sched_getaffinity" },
336  { 243, "io_setup" },
337  { 244, "io_destory" },
338  { 245, "io_getevents" },
339  { 246, "io_submit" },
340  { 247, "io_cancel" },
341  { 248, "unknown#248" },
342  { 249, "lookup_dcookie" },
343  { 250, "epoll_create" },
344  { 251, "epoll_ctl" },
345  { 252, "epoll_wait" },
346  { 253, "remap_file_pages" },
347  { 254, "set_thread_area" },
348  { 255, "get_thread_area" },
349  { 256, "set_tid_address" },
350  { 257, "timer_create" },
351  { 258, "timer_settime" },
352  { 259, "timer_gettime" },
353  { 260, "timer_getoverrun" },
354  { 261, "timer_delete" },
355  { 262, "clock_settime" },
356  { 263, "clock_gettime" },
357  { 264, "clock_getres" },
358  { 265, "clock_nanosleep" },
359  { 266, "statfs64" },
360  { 267, "fstatfs64" },
361  { 268, "tgkill" },
362  { 269, "utimes" },
363  { 270, "arm_fadvise64_64" },
364  { 271, "pciconfig_iobase" },
365  { 272, "pciconfig_read" },
366  { 273, "pciconfig_write" },
367  { 274, "mq_open" },
368  { 275, "mq_unlink" },
369  { 276, "mq_timedsend" },
370  { 277, "mq_timedreceive" },
371  { 278, "mq_notify" },
372  { 279, "mq_getsetattr" },
373  { 280, "waitid" },
374  { 281, "socket" },
375  { 282, "bind" },
376  { 283, "connect" },
377  { 284, "listen" },
378  { 285, "accept" },
379  { 286, "getsockname" },
380  { 287, "getpeername" },
381  { 288, "socketpair" },
382  { 289, "send" },
383  { 290, "sendto" },
384  { 291, "recv" },
385  { 292, "recvfrom" },
386  { 293, "shutdown" },
387  { 294, "setsockopt" },
388  { 295, "getsockopt" },
389  { 296, "sendmsg" },
390  { 297, "rcvmsg" },
391  { 298, "semop" },
392  { 299, "semget" },
393  { 300, "semctl" },
394  { 301, "msgsend" },
395  { 302, "msgrcv" },
396  { 303, "msgget" },
397  { 304, "msgctl" },
398  { 305, "shmat" },
399  { 306, "shmdt" },
400  { 307, "shmget" },
401  { 308, "shmctl" },
402  { 309, "add_key" },
403  { 310, "request_key" },
404  { 311, "keyctl" },
405  { 312, "semtimedop" },
406  { 313, "vserver" },
407  { 314, "ioprio_set" },
408  { 315, "ioprio_get" },
409  { 316, "inotify_init" },
410  { 317, "inotify_add_watch" },
411  { 318, "inotify_rm_watch" },
412  { 319, "mbind" },
413  { 320, "get_mempolicy" },
414  { 321, "set_mempolicy" },
415  { 322, "openat" },
416  { 323, "mkdirat" },
417  { 324, "mknodat" },
418  { 325, "fchownat" },
419  { 326, "futimesat" },
420  { 327, "fstatat64" },
421  { 328, "unlinkat" },
422  { 329, "renameat" },
423  { 330, "linkat" },
424  { 331, "symlinkat" },
425  { 332, "readlinkat" },
426  { 333, "fchmodat" },
427  { 334, "faccessat" },
428  { 335, "pselect6" },
429  { 336, "ppoll" },
430  { 337, "unshare" },
431  { 338, "set_robust_list" },
432  { 339, "get_robust_list" },
433  { 340, "splice" },
434  { 341, "arm_sync_file_range" },
435  { 342, "tee" },
436  { 343, "vmsplice" },
437  { 344, "move_pages" },
438  { 345, "getcpu" },
439  { 346, "epoll_pwait" },
440 };
441 
443  ::Loader::ObjectFile *objFile) :
444  PowerProcess(params, objFile)
445 {}
446 
447 void
449 {
451 }
452 
453 void
455 {
457  syscallDescs.get(tc->readIntReg(0))->doSyscall(tc);
458 }
geteuidFunc
SyscallReturn geteuidFunc(SyscallDesc *desc, ThreadContext *tc)
Target geteuid() handler.
Definition: syscall_emul.cc:956
Loader::Linux
@ Linux
Definition: object_file.hh:62
munmapFunc
SyscallReturn munmapFunc(SyscallDesc *desc, ThreadContext *tc, Addr start, size_t length)
Target munmap() handler.
Definition: syscall_emul.cc:331
Process::Loader
Each instance of a Loader subclass will have a chance to try to load an object file when tryLoaders i...
Definition: process.hh:185
dupFunc
SyscallReturn dupFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd)
FIXME: The file description is not shared among file descriptors created with dup.
Definition: syscall_emul.cc:671
ignoreFunc
SyscallReturn ignoreFunc(SyscallDesc *desc, ThreadContext *tc)
Handler for unimplemented syscalls that we never intend to implement (signal handling,...
Definition: syscall_emul.cc:73
warn
#define warn(...)
Definition: logging.hh:239
linux.hh
system.hh
getpagesizeFunc
SyscallReturn getpagesizeFunc(SyscallDesc *desc, ThreadContext *tc)
Target getpagesize() handler.
Definition: syscall_emul.cc:242
SyscallDescTable
Definition: syscall_desc.hh:180
Process
Definition: process.hh:65
chownFunc
SyscallReturn chownFunc(SyscallDesc *desc, ThreadContext *tc, Addr pathname, uint32_t owner, uint32_t group)
Target chown() handler.
Definition: syscall_emul.cc:625
PowerLinuxProcess::initState
void initState() override
initState() is called on each SimObject when not restoring from a checkpoint.
Definition: process.cc:448
ProxyPtr
Definition: proxy_ptr.hh:236
unlinkFunc
SyscallReturn unlinkFunc(SyscallDesc *desc, ThreadContext *tc, Addr pathname)
Target unlink() handler.
Definition: syscall_emul.cc:452
Loader::Power
@ Power
Definition: object_file.hh:54
getegidFunc
SyscallReturn getegidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getegid() handler.
Definition: syscall_emul.cc:970
ThreadContext::getProcessPtr
virtual Process * getProcessPtr()=0
ftruncateFunc
SyscallReturn ftruncateFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, off_t length)
Target ftruncate() handler.
Definition: syscall_emul.cc:560
umaskFunc
SyscallReturn umaskFunc(SyscallDesc *desc, ThreadContext *tc)
Target umask() handler.
Definition: syscall_emul.cc:614
Process::syscall
virtual void syscall(ThreadContext *tc)
Definition: process.hh:78
lseekFunc
SyscallReturn lseekFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint64_t offs, int whence)
Target lseek() handler.
Definition: syscall_emul.cc:287
exitFunc
SyscallReturn exitFunc(SyscallDesc *desc, ThreadContext *tc, int status)
Target exit() handler: terminate current context.
Definition: syscall_emul.cc:230
PowerLinuxProcess::syscall
void syscall(ThreadContext *tc) override
Definition: process.cc:454
PowerProcess::initState
void initState() override
initState() is called on each SimObject when not restoring from a checkpoint.
Definition: process.cc:76
getpidFunc
SyscallReturn getpidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getpid() handler.
Definition: syscall_emul.cc:928
Loader::ObjectFile
Definition: object_file.hh:70
renameFunc
SyscallReturn renameFunc(SyscallDesc *desc, ThreadContext *tc, Addr oldpath, Addr newpath)
Target rename() handler.
Definition: syscall_emul.cc:523
brkFunc
SyscallReturn brkFunc(SyscallDesc *desc, ThreadContext *tc, Addr new_brk)
Target brk() handler: set brk address.
Definition: syscall_emul.cc:249
ThreadContext
ThreadContext is the external interface to all thread state for anything outside of the CPU.
Definition: thread_context.hh:88
PowerISA
Definition: decoder.cc:31
_llseekFunc
SyscallReturn _llseekFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint64_t offset_high, uint32_t offset_low, Addr result_ptr, int whence)
Target _llseek() handler.
Definition: syscall_emul.cc:304
readlinkFunc
SyscallReturn readlinkFunc(SyscallDesc *desc, ThreadContext *tc, Addr pathname, Addr buf_ptr, size_t bufsiz)
Target readlink() handler.
Definition: syscall_emul.cc:394
truncateFunc
SyscallReturn truncateFunc(SyscallDesc *desc, ThreadContext *tc, Addr pathname, off_t length)
Target truncate() handler.
Definition: syscall_emul.cc:544
process.hh
Loader::UnknownOpSys
@ UnknownOpSys
Definition: object_file.hh:60
unameFunc
static SyscallReturn unameFunc(SyscallDesc *desc, ThreadContext *tc, VPtr< Linux::utsname > name)
Target uname() handler.
Definition: process.cc:79
ftruncate64Func
SyscallReturn ftruncate64Func(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int64_t length)
Target ftruncate64() handler.
Definition: syscall_emul.cc:595
exitGroupFunc
SyscallReturn exitGroupFunc(SyscallDesc *desc, ThreadContext *tc, int status)
Target exit_group() handler: terminate simulation. (exit all threads)
Definition: syscall_emul.cc:236
SyscallReturn
This class represents the return value from an emulated system call, including any errno setting.
Definition: syscall_return.hh:52
name
const std::string & name()
Definition: trace.cc:50
SyscallDesc::doSyscall
void doSyscall(ThreadContext *tc)
Interface for invoking the system call funcion pointer.
Definition: syscall_desc.cc:38
fcntlFunc
SyscallReturn fcntlFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int cmd, GuestABI::VarArgs< int > varargs)
Target fcntl() handler.
Definition: syscall_emul.cc:719
isa_traits.hh
getuidFunc
SyscallReturn getuidFunc(SyscallDesc *desc, ThreadContext *tc)
Definition: syscall_emul.cc:949
syscall_emul.hh
PowerLinuxProcess::PowerLinuxProcess
PowerLinuxProcess(ProcessParams *params, ::Loader::ObjectFile *objFile)
Definition: process.cc:442
Loader::ObjectFile::getArch
Arch getArch() const
Definition: object_file.hh:99
closeFunc
SyscallReturn closeFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd)
Target close() handler.
Definition: syscall_emul.cc:280
std
Overload hash function for BasicBlockRange type.
Definition: vec_reg.hh:587
PowerLinuxProcess::syscallDescs
static SyscallDescTable< SyscallABI > syscallDescs
Syscall descriptors, indexed by call number.
Definition: process.hh:48
gethostnameFunc
SyscallReturn gethostnameFunc(SyscallDesc *desc, ThreadContext *tc, Addr buf_ptr, int name_len)
Target gethostname() handler.
Definition: syscall_emul.cc:354
Loader::ObjectFile::getOpSys
OpSys getOpSys() const
Definition: object_file.hh:100
fcntl64Func
SyscallReturn fcntl64Func(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int cmd)
Target fcntl64() handler.
Definition: syscall_emul.cc:761
trace.hh
linux.hh
SyscallDescTable::get
SyscallDesc * get(int num, bool fatal_if_missing=true)
Definition: syscall_desc.hh:195
ThreadContext::readIntReg
virtual RegVal readIntReg(RegIndex reg_idx) const =0
PowerProcess
Definition: process.hh:45
getgidFunc
SyscallReturn getgidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getgid() handler.
Definition: syscall_emul.cc:963
object_file.hh
PowerLinuxProcess
A process with emulated PPC/Linux syscalls.
Definition: process.hh:38
thread_context.hh
SyscallDesc
This class provides the wrapper interface for the system call implementations which are defined in th...
Definition: syscall_desc.hh:66
process.hh
syscall_desc.hh

Generated on Wed Sep 30 2020 14:01:59 for gem5 by doxygen 1.8.17