svd2repl: print auto-generated warning in header

Print a warning indicating that the platform file is auto-generated.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-05-19 14:25:50 +08:00
parent c516919479
commit 659f5b7f68

View file

@ -475,7 +475,8 @@ fn parse_vendor_extensions<T: BufRead>(
}
fn print_header<U: Write>(out: &mut U) -> std::io::Result<()> {
let s = r####"
let s = r####"// Renode Platform file generated by svd2repl
// This file is automatically generated
cpu: CPU.VexRiscv @ sysbus
cpuType: "rv32imac"
privilegeArchitecture: PrivilegeArchitecture.Priv1_10