aboutsummaryrefslogtreecommitdiff
path: root/model/riscv_csr_ext.sail
AgeCommit message (Collapse)AuthorFilesLines
2024-02-08Shorten copyright notice at the top of each fileTim Hutt1-65/+3
This script was used to do the modification: ``` from pathlib import Path import re RE_LINE = r"/\*={50,150}\*/\n" RE_MIDDLE = r"/\*.*\*/\n" NEW_TEXT = """/*=======================================================================================*/ /* This Sail RISC-V architecture model, comprising all files and */ /* directories except where otherwise noted is subject the BSD */ /* two-clause license in the LICENSE file. */ /* */ /* SPDX-License-Identifier: BSD-2-Clause */ /*=======================================================================================*/ """ REPLACEMENT = re.compile(rf"^{RE_LINE}(?:{RE_MIDDLE}){{10,100}}{RE_LINE}") def main(): for file in Path("model").glob("**/*.sail"): text = file.read_text(encoding="utf-8") text = REPLACEMENT.sub(NEW_TEXT, text, 1) file.write_text(text, encoding="utf-8") if __name__ == "__main__": main() ```
2023-06-15Run the pre-commit hook on all filesAlex Richardson1-1/+1
This strips trailing whitespace and fixes line endings. I had to add the *.dump files to the exclude list to avoid excessive changes, but ideally these would not be part of the repository since they can just be generated by running objdump manually.
2023-05-29apply_headers: regenerate copyright headersupdate-copyright-headersPhilipp Tomsich1-1/+3
2021-07-29Use headache to apply copyright header at request of Peter Sewell.Robert Norton1-0/+67
2020-01-10Re-instate the catch-all csr_name_map clause and workaround the Sail bug ↵Robert Norton1-2/+6
that prevented this from compiling previously. This will stop crashes on invalid CSRs in TestRIG. I have a reduced test case for the Sail bug and will investigate.
2019-09-10Refactor CSR code to use scattered functions / mappings for ease of extension.Robert Norton1-17/+10
2019-05-14Improve the interface to access CSRs in extensions.Prashanth Mundkur1-0/+20