Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0
48 changes: 20 additions & 28 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

repos:
# pull mirror from: https://github.com/pre-commit/pre-commit-hooks
- repo: https://gitlab.ba.rivosinc.com/pub/it/pre-commit-hooks.git
rev: v4.1.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -28,59 +27,52 @@ repos:
args: [--markdown-linebreak-ext=md]
exclude: ".patch"

# - repo: https://github.com/PyCQA/isort
- repo: https://gitlab.ba.rivosinc.com/pub/it/isort
rev: "5.10.1"
- repo: https://github.com/PyCQA/isort
rev: "7.0.0"
hooks:
- id: isort
args:
- --profile
- google
- --filter-files

# pull mirror from: https://github.com/google/yapf
- repo: https://gitlab.ba.rivosinc.com/pub/it/yapf
rev: v0.31.0
- repo: https://github.com/google/yapf
rev: v0.43.0
hooks:
- id: yapf

# pull mirror of https://github.com/fsfe/reuse-tool (slightly modified)
# pull mirror of https://github.com/fsfe/reuse-tool
- repo: https://github.com/rivosinc/reuse-tool
rev: '3a95909a30d51467575a95b8cabdc7949bb8e7bd'
rev: 'da430ed605e06460b020a75410d62ddb7fc9a616'
hooks:
# Add copyright/license header
- id: reuse-annotate
args:
- -c=Rivos Inc.
- -l=Apache-2.0
- -c Rivos Inc.
- -l Apache-2.0
- --merge-copyrights
- --skip-unrecognised
# Check compliance
- id: reuse

# pull mirror from: https://github.com/jumanjihouse/pre-commit-hooks.git
- repo: https://gitlab.ba.rivosinc.com/pub/it/jumanjihouse_pre-commit-hooks
rev: 2.1.5
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- id: shfmt
args:
- -i 2
- -ci

# pull mirror of https://github.com/ikamensh/flynt/
- repo: https://gitlab.ba.rivosinc.com/pub/it/flynt
rev: '0.76'
- repo: https://github.com/ikamensh/flynt
rev: '1.0.6'
hooks:
- id: flynt

# pull mirror of https://github.com/asottile/pyupgrade
- repo: https://gitlab.ba.rivosinc.com/pub/it/pyupgrade
rev: v2.31.0
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade

# mirror of https://github.com/pre-commit/mirrors-clang-format
- repo: https://gitlab.ba.rivosinc.com/pub/it/mirrors-clang-format
rev: v13.0.1
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.8
hooks:
- id: clang-format
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
6 changes: 6 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2026 Rivos Inc.

SPDX-License-Identifier: Apache-2.0
-->

# Code of Conduct

## Our Pledge
Expand Down
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2026 Rivos Inc.

SPDX-License-Identifier: Apache-2.0
-->

# Contributing to hammer
We want to make contributing to this project as easy and transparent as
possible.
Expand Down Expand Up @@ -28,4 +34,4 @@ outlined on that page and do not file a public issue.

## License
By contributing to hammer, you agree that your contributions will be licensed
under the LICENSE file in the root directory of this source tree.
under the LICENSE file in the root directory of this source tree.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2023 Rivos Inc.
SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.

SPDX-License-Identifier: Apache-2.0
-->
Expand Down
8 changes: 4 additions & 4 deletions hammer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 Rivos Inc.
// SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0

Expand Down Expand Up @@ -49,8 +49,9 @@ Hammer::Hammer(const char *isa, const char *privilege_levels, const char *vector

endianness_t endinaness = endianness_little;

cfg_t cfg = cfg_t(initrd_bounds, bootargs, isa, privilege_levels, vector_arch, misaligned, endinaness, num_pmpregions, memory_layout,
hart_ids, real_time_clint, trigger_count);
cfg_t cfg =
cfg_t(initrd_bounds, bootargs, isa, privilege_levels, vector_arch, misaligned, endinaness,
num_pmpregions, memory_layout, hart_ids, real_time_clint, trigger_count);

if (start_pc.has_value()) {
cfg.start_pc = start_pc.value();
Expand Down Expand Up @@ -155,4 +156,3 @@ std::vector<uint64_t> Hammer::get_vector_reg(uint8_t hart_id, uint8_t vector_reg

return vector_reg_value;
}

6 changes: 6 additions & 0 deletions hammer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2026 Rivos Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

// SPDX-FileCopyrightText: 2022 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down
6 changes: 6 additions & 0 deletions hammer_enums.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2026 Rivos Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

// SPDX-FileCopyrightText: 2022 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion hammer_pybind.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 Rivos Inc.
// SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion pytests/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
4 changes: 2 additions & 2 deletions pytests/pytest000.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2022 Rivos Inc.

# SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
4 changes: 2 additions & 2 deletions pytests/pytest001.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2022 Rivos Inc.

# SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
4 changes: 2 additions & 2 deletions pytests/pytest002.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2022 Rivos Inc.

# SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
4 changes: 2 additions & 2 deletions pytests/pytest003.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2022 Rivos Inc.

# SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion tests/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
# SPDX-FileCopyrightText: 2023 - 2026 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion tests/test000.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 Rivos Inc.
// SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0

Expand Down
6 changes: 6 additions & 0 deletions tests/test000.input.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2026 Rivos Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

// SPDX-FileCopyrightText: 2022 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion tests/test001.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 Rivos Inc.
// SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0

Expand Down
6 changes: 6 additions & 0 deletions tests/test001.input.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2026 Rivos Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

// SPDX-FileCopyrightText: 2022 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion tests/test002.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 Rivos Inc.
// SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0

Expand Down
6 changes: 6 additions & 0 deletions tests/test002.input.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2026 Rivos Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

// SPDX-FileCopyrightText: 2022 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion tests/test003.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 Rivos Inc.
// SPDX-FileCopyrightText: 2022 - 2026 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0

Expand Down
6 changes: 6 additions & 0 deletions tests/test003.input.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2026 Rivos Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

// SPDX-FileCopyrightText: 2022 Rivos Inc.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down
6 changes: 6 additions & 0 deletions tests/testinput.link.ld
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2026 Rivos Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

# SPDX-FileCopyrightText: 2023 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0
Expand Down