You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While __SetConfig and __ListConfig are undocumented, they're very useful in my RV32 emulator. However, one thing I'd like to do is be able to set multiple configuration values at once in a file, e.g.
The semantics would be as if the -C flag was used on the command line multiple times, and config options are applied sequentially (just the same as on the CLI).
This would also dovetail nicely with the ability to read a config file from an environment variable; for example,
That's probably quite useful. I'll look into adding it.
The __SetConfig and __ListConfig functions so far only exist for command-line compatability with ARM's internal tools for when we run the AVS tests, but that's something we want to continue to be able to do so they won't be going away
This overlaps with the functionality of riscv-config as used by the compliance group. I've implemented support for that in this PR: riscv/sail-riscv#43 but it requires recompiling the model to change the config so something like you propose might be simpler and preferable.
While
__SetConfig
and__ListConfig
are undocumented, they're very useful in my RV32 emulator. However, one thing I'd like to do is be able to set multiple configuration values at once in a file, e.g.This could be inside the file
rv32im-debug.conf
, with the simulator being executed e.g.The semantics would be as if the
-C
flag was used on the command line multiple times, and config options are applied sequentially (just the same as on the CLI).This would also dovetail nicely with the ability to read a config file from an environment variable; for example,
But maybe that's not useful unless someone needs it.
The text was updated successfully, but these errors were encountered: