From: Yu-hsin Wang Date: Wed, 21 Oct 2020 10:25:34 +0000 (+0800) Subject: configs: Use absolute path for VirtIO9PDiod default root X-Git-Tag: develop-gem5-snapshot~590 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd030720620ede6de75ccba86335a40deaa8c2db;p=gem5.git configs: Use absolute path for VirtIO9PDiod default root VirtIO9PDiod model requires an absolute path as its parameter. So we should change the default root path to absolute path as well. Change-Id: I68a2ae1115e84ed61055298b06b2d0b4bd6410b3 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36381 Reviewed-by: Earl Ou Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py index 5814a03c0..710ee4d49 100644 --- a/configs/common/FSConfig.py +++ b/configs/common/FSConfig.py @@ -79,7 +79,7 @@ class MemBus(SystemXBar): def attach_9p(parent, bus): viopci = PciVirtIO() viopci.vio = VirtIO9PDiod() - viodir = os.path.join(m5.options.outdir, '9p') + viodir = os.path.realpath(os.path.join(m5.options.outdir, '9p')) viopci.vio.root = os.path.join(viodir, 'share') viopci.vio.socketPath = os.path.join(viodir, 'socket') if not os.path.exists(viopci.vio.root):