diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-04-19 04:15:32 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-04-19 04:15:32 -0700 |
commit | ca8598147835cc3bf4cb6125b4f32cbd941f1ae7 (patch) | |
tree | 66b6a0f9e09c2988a56962dcd0b66a4b80dd35c1 /src/arch/sparc/linux/syscalls.cc | |
parent | b8333a5155d1231dc1e76762de6ece23ea702d8a (diff) | |
download | gem5-ca8598147835cc3bf4cb6125b4f32cbd941f1ae7.tar.xz |
SE mode: Make keeping track of the number of syscalls less hacky.
Diffstat (limited to 'src/arch/sparc/linux/syscalls.cc')
-rw-r--r-- | src/arch/sparc/linux/syscalls.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/sparc/linux/syscalls.cc b/src/arch/sparc/linux/syscalls.cc index 8496fca13..d9651c85c 100644 --- a/src/arch/sparc/linux/syscalls.cc +++ b/src/arch/sparc/linux/syscalls.cc @@ -390,6 +390,9 @@ SyscallDesc SparcLinuxProcess::syscall32Descs[] = { /* 299 */ SyscallDesc("unshare", unimplementedFunc) }; +const int SparcLinuxProcess::Num_Syscall32_Descs = + sizeof(SparcLinuxProcess::syscall32Descs) / sizeof(SyscallDesc); + SyscallDesc SparcLinuxProcess::syscallDescs[] = { /* 0 */ SyscallDesc("restart_syscall", unimplementedFunc), /* 1 */ SyscallDesc("exit", exitFunc), @@ -677,4 +680,7 @@ SyscallDesc SparcLinuxProcess::syscallDescs[] = { /* 283 */ SyscallDesc("keyctl", unimplementedFunc) }; +const int SparcLinuxProcess::Num_Syscall_Descs = + sizeof(SparcLinuxProcess::syscallDescs) / sizeof(SyscallDesc); + } // namespace SparcISA |