configs: Add root redirect path in SE mode only when set
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 21 Nov 2019 09:29:36 +0000 (09:29 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 27 Nov 2019 09:44:41 +0000 (09:44 +0000)
commit653dfec89ad6d3b8b10f1da7afddff7366e27c82
treea6ba660b30874a1041c509ee57b858a8b892c425
parentccc46bbc20dd30f2288faa3d22ed46024e36dc92
configs: Add root redirect path in SE mode only when set

As it is now, the default behaviour, if chroot is not specified, is to
add a redirect path which is simply mappping "/" in guest to "/" in
host.  This patch avoids this unnecessary mapping, and adds a redirect
path to root only if chroot is specified.

Change-Id: Icbe863887330d7071e0005333b408ffc8cad41d6
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23064
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/common/FileSystemConfig.py
configs/common/Options.py