build/sim: cleanup run_as_root
This commit is contained in:
parent
446ae57b75
commit
5f151152ca
|
@ -206,8 +206,12 @@ class SimVerilatorToolchain:
|
||||||
# run
|
# run
|
||||||
if run:
|
if run:
|
||||||
_compile_sim(build_name, verbose)
|
_compile_sim(build_name, verbose)
|
||||||
_run_sim(build_name, as_root=sim_config.has_module("ethernet") or
|
run_as_root = False
|
||||||
sim_config.has_module("xgmii_ethernet"))
|
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("../../")
|
os.chdir("../../")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue