riscv-software-src / riscof

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker install of SAIL does not seem to be supported by risocf_sail_cSim.py plugin template

Barabas5532 opened this issue · comments

In this documentation page, https://riscof.readthedocs.io/en/latest/installation.html#install-plugin-models, there is an option to install the SAIL emulator as a docker image. After installing the docker image, and trying to run the tests, I get this error:

   ERROR | riscv_sim_RV32: executable not found. Please check environment setup.

It looks like the project template does not care about the docker flag in the config, and assumes that SAIL is installed locally. It never reads the docker or image parameters in the config, and never calls out to docker. The only references I could find to docker in this repo are in the docs.

self.sail_exe = { '32' : os.path.join(config['PATH'] if 'PATH' in config else "","riscv_sim_RV32"),
'64' : os.path.join(config['PATH'] if 'PATH' in config else "","riscv_sim_RV64")}

if shutil.which(self.sail_exe[self.xlen]) is None:
logger.error(self.sail_exe[self.xlen]+ ": executable not found. Please check environment setup.")

Is there actually no docker support in the built-in SAIL plugin or am I missing something?

Seems like docker support is available in this version of the plugin: https://gitlab.com/incoresemi/riscof-plugins/-/commit/2305fbf12a0fdc44a0a26821e53f445471a93cc5

Why is there a separate copy of the plugin being maintained elsewhere?