Add --config-override flag for configuration overrides#1534
Add --config-override flag for configuration overrides#1534pmundkur merged 1 commit intoriscv:masterfrom
Conversation
pmundkur
left a comment
There was a problem hiding this comment.
This seems useful! Some more documentation would be nice.
464ad50 to
395eb0a
Compare
Timmmm
left a comment
There was a problem hiding this comment.
Looks pretty good to me. I'm still not sure what we do about error location reporting though.
For the record, discussed in the meeting. We decided just to go with it. In theory you shouldn't ever get a parse error from Sail because we always parse with jsoncons first. That may not end up being 100% true if there are subtle differences between the parsers, or maybe things that Sail checks that the schema validation doesn't, but fingers crossed... |
395eb0a to
99b1d77
Compare
|
I've made a clear distinction between parse and validate errors. The code first run Now it doesn't matter whether Finally, we perform the validation check. |
82b131d to
b01acea
Compare
b01acea to
a4fdf47
Compare
a4fdf47 to
e9804b0
Compare
|
We may want to add a proper man page style document for the simulator at this point, rather than just adding everything to the readme. |
pmundkur
left a comment
There was a problem hiding this comment.
Nice! Minor tweaks to the Changelog and README.
Introduces a new CLI option `--config-override` that allow us to specify an additional JSON configuration to override the corresponding fields in default or custom configuration. This option is also helpful for first-party tests. It allows us to specify different configs for different tests without writing complete configuration files.
e9804b0 to
961ec5e
Compare
* origin/master: (51 commits) Update version. (riscv#1552) Update changelog for version 0.10. (riscv#1526) Adapt the release workflow to use the common `sail-setup` action. (riscv#1543) Use FetchContent for CLI11 and bump to v2.6.1 (riscv#1544) Add the Rocky Linux container build to CI. (riscv#1542) Add missed stateen checks for the high-half CSRs of `hstateen[0-3]`. (riscv#1546) Add --config-override flag for configuration overrides (riscv#1534) Fix fcvt.s.bf16 NaN-boxing returning wrong canonical QNaN (riscv#1528) Improve README. (riscv#1540) Make global `g_model` instance local (riscv#1536) Install newer Clang version on Linux CI for newer extension support (riscv#1532) Strengthen some before statements in sail_project file (riscv#1537) Make `config` settings non-global (riscv#1535) Remove some unused string mappings. (riscv#1538) Return instead of exit() in `inner_main()` (riscv#1531) Move CLI options into struct (riscv#1529) Remove unncessary void parameters in riscv_sim.cpp (riscv#1530) Add info on contributing extensions under development. (riscv#1521) Remove config_enable_rvfi checks from RVFI callbacks (riscv#1525) Validate vector register groups. (riscv#1486) ...
This adds a
--config-overrideoption to the simulator to override parts of the base--config(or the built-in default). This is especially useful for first-party tests, some of which need the config to be slightly tweaked, for exampleZclsdandZcfare exclusive.Fixes #806