syscall-emul: Add functionality to open syscalls
authorBrandon Potter <Brandon.Potter@amd.com>
Wed, 1 Mar 2017 19:24:16 +0000 (13:24 -0600)
committerBrandon Potter <Brandon.Potter@amd.com>
Thu, 9 Mar 2017 22:42:45 +0000 (22:42 +0000)
commitacce7b0dc0edf85b99c75d1800df99bd9e288b01
tree1737ac1d3885f083f3c568c41870ff97caa9fe66
parente5fe2b82b7cf8842a5a202da69c003d2a2c6af3f
syscall-emul: Add functionality to open syscalls

This changeset adds refactors the existing open system call,
adds the openat variant (enabled for x86 builds), and adds
additional "special file" test cases for /proc/meminfo and
/etc/passwd.

Change-Id: I6f429db65bbf2a28ffa3fd12df518c2d0de49663
Reviewed-on: https://gem5-review.googlesource.com/2265
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Tony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Michael LeBeane <Michael.Lebeane@amd.com>
src/arch/x86/linux/process.cc
src/kern/linux/linux.cc
src/kern/linux/linux.hh
src/kern/solaris/solaris.hh
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh