{"id":24974841,"url":"https://github.com/atoomnetmarc/risc-v-emulator-riscof","last_synced_at":"2025-10-04T21:19:26.109Z","repository":{"id":230434473,"uuid":"779353088","full_name":"atoomnetmarc/RISC-V-emulator-RISCOF","owner":"atoomnetmarc","description":"My try at running the riscv-arch-test using RISCOF against my RISC-V emulator.","archived":false,"fork":false,"pushed_at":"2024-09-08T17:22:21.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T20:49:56.810Z","etag":null,"topics":["riscof","riscv","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atoomnetmarc.png","metadata":{"files":{"readme":"README-gentoo.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-29T16:30:45.000Z","updated_at":"2024-09-08T17:22:24.000Z","dependencies_parsed_at":"2024-03-29T18:27:20.427Z","dependency_job_id":"66b186a7-999e-45a9-972a-9395bcf99b99","html_url":"https://github.com/atoomnetmarc/RISC-V-emulator-RISCOF","commit_stats":null,"previous_names":["atoomnetmarc/risc-v-emulator-riscof"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atoomnetmarc%2FRISC-V-emulator-RISCOF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atoomnetmarc%2FRISC-V-emulator-RISCOF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atoomnetmarc%2FRISC-V-emulator-RISCOF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atoomnetmarc%2FRISC-V-emulator-RISCOF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atoomnetmarc","download_url":"https://codeload.github.com/atoomnetmarc/RISC-V-emulator-RISCOF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150458,"owners_count":20731419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["riscof","riscv","testing"],"created_at":"2025-02-03T20:42:56.621Z","updated_at":"2025-10-04T21:19:21.061Z","avatar_url":"https://github.com/atoomnetmarc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"These instructions try to install RISCOF, RISC-V toolchain and SAIL under Gentoo Linux needed for running `runtests.sh`.\n\n# Install general tools\n\n```bash\nsudo emerge --sync\nsudo emerge --noreplace dev-lang/python dev-python/pip dev-vcs/git dev-python/virtualenv\n```\n\n# Install RISCOF\n\nCreate virtual environment:\n```bash\n# cd some_work_directory_without_spaces\nvirtualenv venv-riscof\n```\n\nActivate virtual environment:\n```bash\nsource venv-riscof/bin/activate\n```\n\nInstall known working version of RISCOF in virtual environment.\n\n```bash\npip install git+https://github.com/riscv/riscof.git@d38859f85fe407bcacddd2efcd355ada4683aee4\n```\n\nTest if working:\n```bash\nriscof --help\n```\n\nDeactivate virtual environment:\n```bash\ndeactivate\n```\n\n# Install RISCV-GNU Toolchain\n\n```bash\nsudo eselect repository enable riscv\nsudo emerge --sync riscv\nsudo emerge --noreplace crossdev\nsudo crossdev --target riscv32-unknown-elf\n```\n\nTest RISCV gcc:\n```bash\nriscv32-unknown-elf-gcc --version\n```\n\n# SAIL\n\nCompile reference emulator:\n```bash\nsudo emerge --noreplace dev-ml/opam sci-mathematics/z3\n\nopam init -y --disable-sandboxing\nopam switch create 5.1.0\nopam install sail -y\neval $(opam config env)\ngit clone https://github.com/riscv/sail-riscv.git\ncd sail-riscv\nmake\nARCH=RV32 make\nsudo ln -s \"$(pwd)/c_emulator/riscv_sim_RV64\" /usr/local/bin/riscv_sim_RV64\nsudo ln -s \"$(pwd)/c_emulator/riscv_sim_RV32\" /usr/local/bin/riscv_sim_RV32\n```\n\nTest:\n```bash\nsail --help\nriscv_sim_RV32\nriscv_sim_RV64\n```\n\n# Running tests\n\nActivate virtual environment:\n```bash\nsource venv-riscof/bin/activate\n```\n\nThen execute `runtests.sh`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatoomnetmarc%2Frisc-v-emulator-riscof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatoomnetmarc%2Frisc-v-emulator-riscof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatoomnetmarc%2Frisc-v-emulator-riscof/lists"}