syscall_emul: extend mmap system call to support file backed mmaps
authorBrandon Potter <brandon.potter@amd.com>
Thu, 17 Mar 2016 17:24:17 +0000 (10:24 -0700)
committerBrandon Potter <brandon.potter@amd.com>
Thu, 17 Mar 2016 17:24:17 +0000 (10:24 -0700)
commita04fac976f02377237bb827d46854b669ebc2397
tree2f2a5e55e16b2c05e4d94e302081bb977e864a36
parent3fa311e5acd58ce720014dd964728c2fa414ca6a
syscall_emul: extend mmap system call to support file backed mmaps

For O3, which has a stat that counts reg reads, there is an additional
reg read per mmap() call since there's an arg we no longer ignore.
Otherwise, stats should not be affected.
19 files changed:
src/arch/alpha/linux/linux.cc
src/arch/alpha/linux/linux.hh
src/arch/alpha/tru64/tru64.cc
src/arch/alpha/tru64/tru64.hh
src/arch/arm/freebsd/freebsd.hh
src/arch/arm/linux/linux.cc
src/arch/arm/linux/linux.hh
src/arch/mips/linux/linux.cc
src/arch/mips/linux/linux.hh
src/arch/power/linux/linux.cc
src/arch/power/linux/linux.hh
src/arch/sparc/linux/linux.cc
src/arch/sparc/linux/linux.hh
src/arch/sparc/solaris/solaris.cc
src/arch/sparc/solaris/solaris.hh
src/arch/x86/linux/linux.cc
src/arch/x86/linux/linux.hh
src/sim/syscall_emul.cc
src/sim/syscall_emul.hh