syscall_emul: [patch 2/22] move SyscallDesc into its own .hh and .cc
authorBrandon Potter <brandon.potter@amd.com>
Wed, 9 Nov 2016 20:27:40 +0000 (14:27 -0600)
committerBrandon Potter <brandon.potter@amd.com>
Wed, 9 Nov 2016 20:27:40 +0000 (14:27 -0600)
commit1ced08c85055d5da845ca549c0f5fcea65ee3e08
treed0e6b2bbd69b07281a35ac561697a1b145591042
parent7a8dda49a4ec33be17bbd101ebd68e02562b9c3d
syscall_emul: [patch 2/22] move SyscallDesc into its own .hh and .cc

The class was crammed into syscall_emul.hh which has tons of forward
declarations and template definitions. To clean it up a bit, moved the
class into separate files and commented the class with doxygen style
comments. Also, provided some encapsulation by adding some accessors and
a mutator.

The syscallreturn.hh file was renamed syscall_return.hh to make it consistent
with other similarly named files in the src/sim directory.

The DPRINTF_SYSCALL macro was moved into its own header file with the
include the Base and Verbose flags as well.

--HG--
rename : src/sim/syscallreturn.hh => src/sim/syscall_return.hh
21 files changed:
src/arch/alpha/linux/process.cc
src/arch/arm/freebsd/process.cc
src/arch/arm/linux/process.cc
src/arch/mips/linux/process.cc
src/arch/power/linux/process.cc
src/arch/riscv/linux/process.cc
src/arch/sparc/linux/process.cc
src/arch/sparc/linux/syscalls.cc
src/arch/sparc/solaris/process.cc
src/arch/x86/linux/process.cc
src/arch/x86/process.cc
src/sim/SConscript
src/sim/process.cc
src/sim/process.hh
src/sim/syscall_debug_macros.hh [new file with mode: 0644]
src/sim/syscall_desc.cc [new file with mode: 0644]
src/sim/syscall_desc.hh [new file with mode: 0644]
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh
src/sim/syscall_return.hh [new file with mode: 0644]
src/sim/syscallreturn.hh [deleted file]