Commit e87abb14 authored by Tristan Gingold's avatar Tristan Gingold

simulation: exit in case of error in load_firmware.

parent c03a3d34
......@@ -124,6 +124,10 @@ class MTCPUControl;
integer f = $fopen(filename, "r");
int i, addr = 0;
// Stop in case of error.
if (f == 0)
$exit;
reset_core(core, 1);
writel(`ADDR_MT_CPU_CSR_CORE_SEL, core);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment