46 #ifndef __SIM_SYSCALL_DESC_HH__
47 #define __SIM_SYSCALL_DESC_HH__
132 #endif // __SIM_SYSCALL_DESC_HH__
void doSyscall(int callnum, Process *proc, ThreadContext *tc, Fault *fault)
Interface for invoking the system call funcion pointer.
SyscallReturn(* SyscallExecutor)(SyscallDesc *, int num, Process *, ThreadContext *)
Typedef the function pointer here to clean up code below.
ThreadContext is the external interface to all thread state for anything outside of the CPU...
SyscallExecutor executor
Mechanism for ISAs to connect to the emul function definitions.
std::string _name
System call name (e.g., open, mmap, clone, socket, etc.)
Warn only once for unimplemented system calls.
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
This class provides the wrapper interface for the system call implementations which are defined in th...
bool _warned
Set if WarnOnce is specified in flags AFTER first call.
int _flags
Holds values set with the preceding enum; note that this has been used primarily for features that ar...
SyscallDesc(const char *name, SyscallExecutor sys_exec, int flags=0)
Do not set return registers according to executor return value.
This class represents the return value from an emulated system call, including any errno setting...
bool needWarning()
Return false if WarnOnce is set and a warning has already been issued.
std::shared_ptr< FaultBase > Fault