projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arch-arm: Do not check MustBeOne flag for TLB requests from the prefetcher
[gem5.git]
/
src
/
sim
/
syscall_desc.hh
diff --git
a/src/sim/syscall_desc.hh
b/src/sim/syscall_desc.hh
index d72803e43771777511ffb2e55373178c562a81be..451db084bb15a45b6996b18d85a996ad78c2193b 100644
(file)
--- a/
src/sim/syscall_desc.hh
+++ b/
src/sim/syscall_desc.hh
@@
-51,9
+51,13
@@
#include "base/types.hh"
class Process;
#include "base/types.hh"
class Process;
+class SyscallDesc;
class SyscallReturn;
class ThreadContext;
class SyscallReturn;
class ThreadContext;
+SyscallReturn unimplementedFunc(SyscallDesc *desc, int num,
+ Process *p, ThreadContext *tc);
+
/**
* This class provides the wrapper interface for the system call
* implementations which are defined in the sim/syscall_emul files and
/**
* This class provides the wrapper interface for the system call
* implementations which are defined in the sim/syscall_emul files and
@@
-66,7
+70,8
@@
class SyscallDesc {
typedef SyscallReturn (*SyscallExecutor)(SyscallDesc*, int num,
Process*, ThreadContext*);
typedef SyscallReturn (*SyscallExecutor)(SyscallDesc*, int num,
Process*, ThreadContext*);
- SyscallDesc(const char *name, SyscallExecutor sys_exec, int flags = 0)
+ SyscallDesc(const char *name,
+ SyscallExecutor sys_exec=unimplementedFunc, int flags=0)
: _name(name), executor(sys_exec), _flags(flags), _warned(false)
{
}
: _name(name), executor(sys_exec), _flags(flags), _warned(false)
{
}