SimEng icon indicating copy to clipboard operation
SimEng copied to clipboard

Boolean Config Parameter Output

Open dANW34V3R opened this issue 1 year ago • 0 comments

Currently, if you incorrectly type "True" or "False" for any of the config options the resulting error is simply:

/.../SimEng/src/include/simeng/config/yaml/ryml.hh:20693:could not deserialize value

Process finished with exit code 134 (interrupted by signal 6:SIGABRT)

This doesn't give enough information to decern what or where the issue is. Ideally we would have a print out similar to:

[SimEng:ModelConfig] Invalid ISA value of "rv64asdf" passed in config file due to "rv64asdf not in set {AArch64, rv64}" error. Cannot continue with config validation. Exiting.

There may not be a simple solution to this. Options include first comparing as a string before converting or erroring. It may be possible to catch the error from RYAML and then giving a more more informative print out.

dANW34V3R avatar Feb 21 '24 13:02 dANW34V3R