Skip to content

Commit

Permalink
Override spike from upstream package, change output to spike-ibex-cosim
Browse files Browse the repository at this point in the history
  • Loading branch information
hcallahan-lowrisc committed Jan 31, 2024
1 parent 8be8c43 commit 7f6dfe0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 33 deletions.
3 changes: 1 addition & 2 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
verilator_ot = import ./verilator {inherit pkgs;};
python_ot = pkgs.callPackage ./python_ot {inherit inputs;};
bazel_ot = pkgs.callPackage ./bazel_ot {};
ibex-cosim = pkgs.callPackage ./ibex-cosim.nix {};

spike-ibex-cosim = pkgs.callPackage ./spike.nix {};
llvm_cheriot = pkgs.callPackage ./llvm_cheriot.nix {};
xmake = import ./xmake.nix {inherit pkgs;};
cheriot-sim = pkgs.callPackage ./cheriot-sim.nix {};
Expand Down
31 changes: 0 additions & 31 deletions pkgs/ibex-cosim.nix

This file was deleted.

19 changes: 19 additions & 0 deletions pkgs/spike.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright lowRISC contributors.
#
# SPDX-License-Identifier: MIT
{
fetchFromGitHub,
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: {
src = fetchFromGitHub {
owner = "lowRISC";
repo = "riscv-isa-sim";
rev = "ibex-cosim-v0.5";
sha256 = "sha256-LK/IXmRHrGxaMRudcUYmeZV5eXU8eH7ruIw7kliumdY=";
};
configureFlags = (prev.configureFlags or []) ++ ["--enable-commitlog" "--enable-misaligned"];
})

0 comments on commit 7f6dfe0

Please sign in to comment.