{"id":13599869,"url":"https://github.com/bokuweb/r2","last_synced_at":"2026-03-14T12:04:16.384Z","repository":{"id":162345227,"uuid":"636914334","full_name":"bokuweb/r2","owner":"bokuweb","description":"A RISC-V emulator written in Rust :crab:","archived":false,"fork":false,"pushed_at":"2024-08-03T01:18:45.000Z","size":3748,"stargazers_count":105,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T05:45:22.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bokuweb.github.io/r2/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bokuweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-05-06T00:56:28.000Z","updated_at":"2025-04-03T16:01:33.000Z","dependencies_parsed_at":"2024-04-10T06:28:16.248Z","dependency_job_id":"f454a0e9-1f7d-4ff8-88ea-a436a206cfcf","html_url":"https://github.com/bokuweb/r2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokuweb%2Fr2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokuweb%2Fr2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokuweb%2Fr2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokuweb%2Fr2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bokuweb","download_url":"https://codeload.github.com/bokuweb/r2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670519,"owners_count":21142901,"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":[],"created_at":"2024-08-01T17:01:14.755Z","updated_at":"2026-03-14T12:04:16.295Z","avatar_url":"https://github.com/bokuweb.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# R2\n\n[![GitHub Actions Status](https://github.com/bokuweb/r2/workflows/ci/badge.svg)](https://github.com/bokuweb/r2/actions)\n\nA RISC-V emulator written in Rust :crab:.  \nInspired [cnlohr/mini-rv32ima](https://github.com/cnlohr/mini-rv32ima).\n\n## Capture\n\nYou can run linux in your browser.\n\n![capture](https://github.com/bokuweb/r2/blob/main/capture.gif?raw=true)\n\n## Playground\n\n[https://bokuweb.github.io/r2/](https://bokuweb.github.io/r2/)\n\n## Native\n\n```sh\n$ cargo run -p app -- -i fixtures/linux.bin -d fixtures/default.dtb\n```\n\n## WASI\n\n```sh\n$ cargo build -p wasi --target wasm32-wasi --release\n$ wasmtime ./target/wasm32-wasi/release/wasi.wasm\n```\n\n## Wasm\n\n```sh\n$ cd wasm\n$ cargo build --target wasm32-unknown-unknown --release\n$ wasm-opt --asyncify --pass-arg=asyncify-imports@env.keydown ../target/wasm32-unknown-unknown/release/wasm.wasm -o out.wasm\n$ npx serve\n```\n\n## Special Thanks\n\n- [cnlohr/mini-rv32ima](https://github.com/cnlohr/mini-rv32ima)\n- [Writing a Really Tiny RISC-V Emulator](https://www.youtube.com/watch?v=YT5vB3UqU_E)\n\n## References\n\n- [https://github.com/torvalds/linux/tree/master/arch/riscv](https://github.com/torvalds/linux/tree/master/arch/riscv)\n- [https://www.five-embeddev.com/riscv-isa-manual/latest/machine.html](https://www.five-embeddev.com/riscv-isa-manual/latest/machine.html)\n- [https://github.com/riscv/riscv-isa-manual/releases/download/Priv-v1.12/riscv-privileged-20211203.pdf](https://github.com/riscv/riscv-isa-manual/releases/download/Priv-v1.12/riscv-privileged-20211203.pdf)\n- [https://riscv.org/wp-content/uploads/2017/05/riscv-spec-v2.2.pdf](https://riscv.org/wp-content/uploads/2017/05/riscv-spec-v2.2.pdf)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbokuweb%2Fr2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbokuweb%2Fr2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbokuweb%2Fr2/lists"}