syscall_emul: factor out flag tables into common file
authorSteve Reinhardt <steve.reinhardt@amd.com>
Fri, 1 Apr 2016 23:38:15 +0000 (16:38 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Fri, 1 Apr 2016 23:38:15 +0000 (16:38 -0700)
commit0e214bdfd1dd2e963200875bc8f5ea31e5262503
treefb1402ef189c8904cc9f62a65cc9bbcfef26412c
parent41c358c411a0a1dd555c9da9b01c3ff39937b367
syscall_emul: factor out flag tables into common file

The openFlagTable and mmapFlagTables for emulated Linux
platforms are basically identical, but are specified
repetitively for every platform.  Use a common file
that gets included for each platform so that we only
have one copy, making them more consistent and simplifying
changes (like adding #ifdefs).

In the process, made some minor fixes that slipped through
due to previous inconsistencies, and added more #ifdefs
to try to fix building on alternative hosts.
src/arch/alpha/linux/linux.cc
src/arch/arm/linux/linux.cc
src/arch/mips/linux/linux.cc
src/arch/mips/linux/linux.hh
src/arch/power/linux/linux.cc
src/arch/sparc/linux/linux.cc
src/arch/sparc/linux/linux.hh
src/arch/x86/linux/linux.cc
src/kern/linux/flag_tables.hh [new file with mode: 0644]