arch: Simplify the SyscallDesc tables.
authorGabe Black <gabeblack@google.com>
Tue, 26 Nov 2019 06:22:13 +0000 (22:22 -0800)
committerGabe Black <gabeblack@google.com>
Sat, 8 Feb 2020 12:32:10 +0000 (12:32 +0000)
commite0f03511822199ce5fe4a622f6217f305f4f2cd1
treee4207125d4102d3e2e3806629cb06bc77926fbf6
parentb3eb2db7e44526bcbd0e5a1f382253c72ab5cb78
arch: Simplify the SyscallDesc tables.

By using braced initializer lists and dropping the default
unimplementedFunc implementation function, the SyscallDesc tables
become a lot less crowded, and it's now very obvious which syscalls
are implemented just by quickly visually scanning the table.

This will also make it a lot easier to change the underlying type
stored in the table without having to adjust all of the instances
within them.

Jira Issue: https://gem5.atlassian.net/browse/GEM5-187

Change-Id: I7821de74812e1c02ca4550fc9c46cc2188cf1bd0
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23189
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
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/syscalls.cc
src/arch/sparc/solaris/process.cc
src/arch/x86/linux/process.cc