{
  "id": "sail-riscv",
  "name": "Sail RISC-V model",
  "aka": [
    "sail-riscv",
    "RISC-V golden model",
    "RISC-V formal specification"
  ],
  "summary": "The official formal model of the RISC-V instruction set, written in Sail and adopted by RISC-V International. From it you can build a RISC-V emulator and definitions for several proof assistants.",
  "target": "riscv",
  "fragment": "Unprivileged and privileged RISC-V: the RV32/RV64 I and E base ISAs, most ratified extensions (M, A, F, D, C, B, V, scalar and vector crypto, H and many others), machine, supervisor and user modes, Sv32 to Sv57 virtual memory and PMP. Some extensions are not modeled yet (see the Extension Roadmap). The model itself is sequential; multiprocessor behavior comes from separate tools.",
  "version": "Per-extension versions are listed in the README (for example RV32I/RV64I v2.1, V v1.0, supervisor ISA 1.12 and 1.13). Latest release 0.16.",
  "framework": "Sail",
  "provers": [
    "rocq",
    "lean4",
    "isabelle",
    "hol4"
  ],
  "open": "open-source",
  "license": "BSD-2-Clause",
  "maintainers": [
    "RISC-V International community (riscv GitHub organization, golden model group)",
    "Originally SRI International and the University of Cambridge"
  ],
  "links": {
    "repo": "https://github.com/riscv/sail-riscv",
    "docs": "https://github.com/riscv/sail-riscv/blob/master/doc/ReadingGuide.md",
    "paper": "https://www.cl.cam.ac.uk/~pes20/sail/sail-popl2019.pdf"
  },
  "validation": "Every CI run (each pull request and each push to master) runs the emulator built from the model on riscv-tests, the official RISC-V architectural certification tests (riscv-arch-test), the DAMO hypervisor tests, some vector test configurations and a Linux boot; a weekly job runs more vector configurations. The README says the emulator can boot Linux, FreeBSD and seL4. A 2026 study by JKU Linz compared the vector extension against the Spike simulator: 0.23% of positive tests and 3.73% of negative (invalid-instruction) tests differed, and at least one difference was confirmed as a bug in the Sail model.",
  "stage_evidence": {
    "mechanized": {
      "met": true,
      "evidence": "https://github.com/riscv/sail-riscv/blob/master/model/CMakeLists.txt",
      "note": "Written in Sail. Rocq and Lean definitions are generated and built in CI on every change. Isabelle and HOL4 definitions (generated through Lem) are build targets but are not built in CI."
    },
    "scope_stated": {
      "met": true,
      "evidence": "https://github.com/riscv/sail-riscv#supported-risc-v-isa-features",
      "note": "The README lists every supported extension with its version."
    },
    "executable": {
      "met": true,
      "evidence": "https://github.com/riscv/sail-riscv#getting-started",
      "note": "Sail compiles the model to a C++ emulator (sail_riscv_sim); binary releases exist."
    },
    "validated": {
      "met": true,
      "evidence": "https://github.com/riscv/sail-riscv/blob/master/.github/workflows/ci.yml",
      "note": "riscv-tests, riscv-arch-test, hypervisor and vector suites run in public CI on every change (test suites described in test/README.md). Independent differential testing against Spike for the vector extension was published in 2026."
    },
    "adopted_by_owner": {
      "met": true,
      "evidence": "https://github.com/riscv/sail-riscv",
      "note": "The README in RISC-V International's GitHub organization says the model \"has been adopted by RISC-V International\". The official ISA manual embeds Sail code from the model in instruction descriptions (for example Zicond)."
    },
    "full_coverage": {
      "met": false,
      "evidence": "https://github.com/riscv/sail-riscv/wiki/Extension-Roadmap",
      "note": "The Extension Roadmap lists extensions that are not supported yet (for example Ztso, Smaia, Ssaia) and others still in review (for example Q, Zcmp, Zcmt, Zilsd/Zclsd, Smrnmi, Sdext)."
    },
    "tracks_versions": {
      "met": false,
      "note": "New extensions are added continuously and there are regular releases, but we found no stated time within which new ratified versions are added."
    }
  },
  "features": {
    "isa.user": {
      "status": "partial",
      "note": "Base ISAs and most ratified unprivileged extensions are modeled. The Extension Roadmap lists some as not done yet, for example Ztso, Zcmp, Zcmt and Zilsd/Zclsd.",
      "source": "https://github.com/riscv/sail-riscv/wiki/Extension-Roadmap"
    },
    "isa.fp": {
      "status": "partial",
      "note": "F, D, Zfh, Zfa, Zfinx and related extensions are modeled; Q (quad precision) is still in review.",
      "source": "https://github.com/riscv/sail-riscv/wiki/Extension-Roadmap"
    },
    "isa.simd": {
      "status": "full",
      "note": "V 1.0, the embedded Zve* subsets and the vector crypto extensions are modeled. A 2026 differential test against Spike found some deviations in invalid-instruction checks.",
      "source": "https://ics.jku.at/files/2026RISC-V_Summit_Europe_RVVTS_SailRV_Spike.pdf"
    },
    "isa.privileged": {
      "status": "partial",
      "note": "Machine, supervisor and user modes, the H (hypervisor) extension and many Sm*/Ss* extensions are modeled. Missing or in review per the roadmap include Smaia/Ssaia (advanced interrupts), Smrnmi, Smepmp and Sdext (debug).",
      "source": "https://github.com/riscv/sail-riscv/wiki/Extension-Roadmap"
    },
    "isa.mmu": {
      "status": "full",
      "note": "Sv32, Sv39, Sv48 and Sv57 page tables, Svnapot, Svpbmt, Svadu, and two-stage translation for H.",
      "source": "https://github.com/riscv/sail-riscv#supported-risc-v-isa-features"
    },
    "isa.memory-model": {
      "status": "partial",
      "note": "The emulator and the prover definitions are sequential. The RVWMO memory model is available by combining the model with separate tools (the RMEM operational model and isla-axiomatic).",
      "source": "https://github.com/riscv/sail-riscv#concurrent-execution"
    }
  },
  "last_release": {
    "version": "0.16",
    "date": "2026-10-16",
    "source": "https://github.com/riscv/sail-riscv/releases/tag/0.16"
  },
  "last_checked": "2026-11-26",
  "attestation": "maintainer",
  "claimed_by_authors": false,
  "sources": [
    {
      "url": "https://github.com/riscv/sail-riscv",
      "title": "sail-riscv README",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/riscv/sail-riscv/wiki/Extension-Roadmap",
      "title": "Extension Roadmap (edited 2026-11-12)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/riscv/sail-riscv/blob/master/model/CMakeLists.txt",
      "title": "Prover output build targets (Rocq, Lean, Lem/Isabelle, HOL4)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/riscv/sail-riscv/blob/master/.github/workflows/compile-lean.yml",
      "title": "CI job building the Lean definitions",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/riscv/sail-riscv/blob/master/.github/workflows/rocq.yml",
      "title": "CI job building the Rocq definitions",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/riscv/sail-riscv/blob/master/.github/workflows/ci.yml",
      "title": "Main CI workflow (test suites and Linux boot)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/riscv/sail-riscv/blob/master/.github/workflows/run-full-tests.yml",
      "title": "Weekly full test-suite CI job",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/riscv/sail-riscv/blob/master/test/README.md",
      "title": "Test suites used by the model",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/riscv/riscv-isa-manual/blob/main/src/unpriv/zicond.adoc",
      "title": "ISA manual section embedding Sail code",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://ics.jku.at/files/2026RISC-V_Summit_Europe_RVVTS_SailRV_Spike.pdf",
      "title": "Sail-RISC-V and Spike for RISC-V Vector (RISC-V Summit Europe 2026)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://www.cl.cam.ac.uk/~pes20/sail/sail-popl2019.pdf",
      "title": "ISA Semantics for ARMv8-A, RISC-V, and CHERI-MIPS (POPL 2019)",
      "accessed": "2026-11-26"
    }
  ],
  "computed": {
    "kind": "semantics",
    "methodology_version": "0.1",
    "built": "2026-11-26",
    "links": {
      "html": "/semantics/sail-riscv/",
      "json": "/semantics/sail-riscv.json",
      "markdown": "/semantics/sail-riscv.md"
    },
    "stage": {
      "stage": 2,
      "name": "Authoritative",
      "criteria": [
        {
          "key": "mechanized",
          "stage": 0,
          "label": "Machine-checked or machine-readable definition",
          "met": true,
          "evidence": "https://github.com/riscv/sail-riscv/blob/master/model/CMakeLists.txt",
          "note": "Written in Sail. Rocq and Lean definitions are generated and built in CI on every change. Isabelle and HOL4 definitions (generated through Lem) are build targets but are not built in CI.",
          "computed": false
        },
        {
          "key": "scope_stated",
          "stage": 0,
          "label": "Fragment and version are stated",
          "met": true,
          "evidence": "https://github.com/riscv/sail-riscv#supported-risc-v-isa-features",
          "note": "The README lists every supported extension with its version.",
          "computed": false
        },
        {
          "key": "executable",
          "stage": 1,
          "label": "Can be executed or tested",
          "met": true,
          "evidence": "https://github.com/riscv/sail-riscv#getting-started",
          "note": "Sail compiles the model to a C++ emulator (sail_riscv_sim); binary releases exist.",
          "computed": false
        },
        {
          "key": "validated",
          "stage": 1,
          "label": "Published results against conformance tests or real implementations",
          "met": true,
          "evidence": "https://github.com/riscv/sail-riscv/blob/master/.github/workflows/ci.yml",
          "note": "riscv-tests, riscv-arch-test, hypervisor and vector suites run in public CI on every change (test suites described in test/README.md). Independent differential testing against Spike for the vector extension was published in 2026.",
          "computed": false
        },
        {
          "key": "authoritative",
          "stage": 2,
          "label": "Adopted by the language or ISA owner, or covers the full current version and tracks new ones",
          "met": true,
          "evidence": "https://github.com/riscv/sail-riscv",
          "note": "Adopted by the owner: yes; full coverage: no; tracks new versions: no. The README in RISC-V International's GitHub organization says the model \"has been adopted by RISC-V International\". The official ISA manual embeds Sail code from the model in instruction descriptions (for example Zicond). The Extension Roadmap lists extensions that are not supported yet (for example Ztso, Smaia, Ssaia) and others still in review (for example Q, Zcmp, Zcmt, Zilsd/Zclsd, Smrnmi, Sdext). New extensions are added continuously and there are regular releases, but we found no stated time within which new ratified versions are added.",
          "computed": true
        }
      ],
      "missing_for_next": []
    },
    "used_by": [
      "islaris"
    ]
  }
}