Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Bugfix: loadMemoryFromFile support absolute paths #693

Merged
merged 3 commits into from
Nov 16, 2023

Commits on Nov 16, 2023

  1. Bugfix: loadMemoryFromFile support absolute paths

    Previously, specifying an absolute path in loadMemoryFromFileInline
    would cause an error when running with treadle, because the path was
    absolutized using os.path.RelPath. The latter function throws an
    exception for absolute paths.
    
    Now both absolute and relative paths work (matching the behaviour of
    Verilator).
    
    Note that this has no security implications, since the previous
    "relative-path" based implementation also allowed "../../" paths;
    existing relative paths should not be affected.
    nbfalcon committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    296ed6c View commit details
    Browse the repository at this point in the history
  2. Review: style: MEM1 -> Mem1

    nbfalcon committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    0a8d602 View commit details
    Browse the repository at this point in the history
  3. scalafmt

    nbfalcon committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    ab13cc6 View commit details
    Browse the repository at this point in the history