riscv-software-src / riscv-perf-model

Example RISC-V Out-of-Order/Superscalar Processor Performance Core and MSS Model
Apache License 2.0
133 stars 56 forks source link

Mon-ascii characters in the generated alf files that are checked in, for example in `small_core.alf` #126

Closed klingaard closed 10 months ago

klingaard commented 10 months ago

From @peter-d :

          Hi Knute - I run into problems with this PR, seems there are some non-ascii characters in the generated alf files that are checked in, for example in `small_core.alf`:

image

On my end (WSL2 Ubuntu), this crashes the yaml parsing when you start the pipe viewer. I haven't been able to rerun the generate script without errors, it's not clear to me what sparta version it depends on exactly to work.

Originally posted by @peter-d in https://github.com/riscv-software-src/riscv-perf-model/issues/107#issuecomment-1833762232

klingaard commented 10 months ago

Found the issue -- for the group replacement string \1, missed telling python to interpret the string raw: r"\1"