sim-se: remove /sys from special paths
authorTony Gutierrez <anthony.gutierrez@amd.com>
Wed, 18 Apr 2018 22:25:23 +0000 (18:25 -0400)
committerBrandon Potter <Brandon.Potter@amd.com>
Tue, 21 May 2019 18:26:10 +0000 (18:26 +0000)
commitdd2d44547ddc08ccee9e1465104eff2f43efdec0
tree08e9b0db3d89a92e2e975193d96ef8665682bd9a
parent874bb1a76091cce44d89f47bf13b9eac53eb2e41
sim-se: remove /sys from special paths

Currently, the open system call implementation in SE mode
treats /sys/ as a special path that is opened using a
special open handler. The ROC runtime, however, reads
several files in /sys/ that are supported via path
redirection. Here we remove /sys/ from the special files
so that the necessary files may be read via path
redirection.

Change-Id: Ifdab38ea1e6cc486ad43aec96b6e032fe63f137d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/12127
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/kern/linux/linux.cc
src/sim/syscall_emul.hh