From: Florent Kermarrec Date: Fri, 15 Nov 2019 09:57:31 +0000 (+0100) Subject: build/sim: cleanup run_as_root X-Git-Tag: 24jan2021_ls180~863 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f151152caebb682becb0bf3c33d2078f9cfadf3;p=litex.git build/sim: cleanup run_as_root --- diff --git a/litex/build/sim/verilator.py b/litex/build/sim/verilator.py index 3f9b40fc..530d6a66 100644 --- a/litex/build/sim/verilator.py +++ b/litex/build/sim/verilator.py @@ -206,8 +206,12 @@ class SimVerilatorToolchain: # run if run: _compile_sim(build_name, verbose) - _run_sim(build_name, as_root=sim_config.has_module("ethernet") or - sim_config.has_module("xgmii_ethernet")) + run_as_root = False + if sim_config.has_module("ethernet"): + run_as_root = True + if sim_config.has_module("xgmii_ethernet"): + run_as_root = True + _run_sim(build_name, as_root=run_as_root) os.chdir("../../")