From bd030720620ede6de75ccba86335a40deaa8c2db Mon Sep 17 00:00:00 2001 From: Yu-hsin Wang Date: Wed, 21 Oct 2020 18:25:34 +0800 Subject: [PATCH] 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 --- configs/common/FSConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.30.2