Skip to content

Commit 256f48e

Browse files
committed
sim_lib.tcl:save_hal_cmds: support tpmod,homemod
with commit 08ac87d, tpmod and homemod modules are preloaded so save_hal_cmds proc should not attempt to load them again
1 parent e630900 commit 256f48e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lib/hallib/sim_lib.tcl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,15 @@ proc save_hal_cmds {savefilename {options ""} } {
468468
scan $line "%s %s %s" cmd arg1 remainder
469469
switch $cmd {
470470
setp {puts $fd [format $setp_fmt $cmd $arg1 $remainder]}
471+
loadrt {
472+
if { [string first tpmod [list $line]] >= 0
473+
|| [string first homemod [list $line]] >= 0
474+
} {
475+
puts $fd "#preloaded module: $line"
476+
} else {
477+
puts $fd $line
478+
}
479+
}
471480
default {puts $fd $line}
472481
}
473482
}

0 commit comments

Comments
 (0)