Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroch-rivosinc committed Jan 22, 2025
1 parent 16591d0 commit 91708ee
Show file tree
Hide file tree
Showing 9 changed files with 459 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
rev: v3.4.2
hooks:
- id: prettier
files: \.(json|yml|yaml)$
files: \.(json|toml|yml|yaml)$
exclude: schemas/json-schema-draft-07.json

- repo: https://github.com/python-jsonschema/check-jsonschema
Expand Down
9 changes: 9 additions & 0 deletions LICENSE-BSD-2-Clause.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Copyright (c) <year> <owner>

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
File renamed without changes.
395 changes: 395 additions & 0 deletions LICENSE-CC-BY.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions LICENSES/BSD-2-Clause.txt
1 change: 1 addition & 0 deletions LICENSES/BSD-3-Clause-Clear.txt
1 change: 1 addition & 0 deletions LICENSES/CC-BY-4.0.txt
46 changes: 46 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version = 1

# For original UDB code
[[annotations]]
path = [
".**",
"arch_def.yardopts",
"backends/**",
"bin/**",
"cert_flow.txt",
"cfgs/**",
"container.def",
"do",
"docs/**",
"Gemfile.lock",
"Gemfile",
"idl.yardopts",
"lib/**",
"package-lock.json",
"package.json",
"Rakefile",
"README.adoc",
"requirements.txt",
"schemas/**",
]
SPDX-FileCopyrightText = "Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved."
SPDX-License-Identifier = "BSD-3-Clause-Clear"


[[annotations]]
path = ["arch/**"]
precedence = "aggregate"
SPDX-FileCopyrightText = [
"Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.",
# For import isa-manual docs: https://github.com/riscv/riscv-isa-manual
"FIXME: isa-manual copyright holders",
# For imported Sail code: https://github.com/riscv/sail-riscv
"FIXME: Sail copyright holders"
]
SPDX-License-Identifier = [
"BSD-3-Clause-Clear",
# For import isa-manual docs: https://github.com/riscv/riscv-isa-manual
"CC-BY-4.0",
# For imported Sail code: https://github.com/riscv/sail-riscv
"BSD-2-Clause"
]
5 changes: 5 additions & 0 deletions arch/inst/I/addi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ access:
data_independent_timing: true
operation(): X[rd] = X[rs1] + imm;

# SPDX-SnippetBegin
# SPDX-SnippetCopyrightText: FIXME: Sail copyright holders
# SPDX-License-Identifier: BSD-2-Clause
sail(): |
{
let rs1_val = X(rs1);
Expand All @@ -39,3 +42,5 @@ sail(): |
X(rd) = result;
RETIRE_SUCCESS
}
# SPDX-SnippetEnd

0 comments on commit 91708ee

Please sign in to comment.