Skip to content

Commit

Permalink
spike: pin patches
Browse files Browse the repository at this point in the history
This patch is removed in 24.11, so vendor this part into our recipe.
  • Loading branch information
nbdd0121 committed Nov 24, 2024
1 parent 7f07db1 commit 878e81d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/spike.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,30 @@
# SPDX-License-Identifier: MIT
{
fetchFromGitHub,
fetchpatch,
spike,
}:
# The lowRISC Ibex processor (https://github.com/lowRISC/ibex) uses a fork of
# spike as an Instruction Set Simulator (ISS) for a cosimulation testbench in
# its Design Verification (DV) environment.
spike.overrideAttrs (_: prev: {
pname = "spike-ibex-cosim";
version = "0.5";

src = fetchFromGitHub {
owner = "lowRISC";
repo = "riscv-isa-sim";
rev = "ibex-cosim-v0.5";
sha256 = "sha256-LK/IXmRHrGxaMRudcUYmeZV5eXU8eH7ruIw7kliumdY=";
};

patches = [
(fetchpatch {
name = "fesvr-fix-compilation-with-gcc-13.patch";
url = "https://github.com/riscv-software-src/riscv-isa-sim/commit/0a7bb5403d0290cea8b2356179d92e4c61ffd51d.patch";
hash = "sha256-JUMTbGawvLkoOWKkruzLzUFQytVR3wqTlGu/eegRFEE=";
})
];

configureFlags = (prev.configureFlags or []) ++ ["--enable-commitlog" "--enable-misaligned"];
})

0 comments on commit 878e81d

Please sign in to comment.