Commit d45c77cd authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

orchestration: use poweroff as default command to exit host simulators

Previously the default was m5 exit with a special case for QEMU. Here we flip
this in anticipation of Simics support.
parent 17b131a2
......@@ -86,15 +86,12 @@ class NodeConfig():
"""String to be appended to kernel command line."""
def config_str(self) -> str:
if self.sim == 'qemu':
if self.sim == 'gem5':
cp_es = [] if self.nockp else ['m5 checkpoint']
exit_es = ['m5 exit']
else:
cp_es = []
exit_es = ['poweroff -f']
else:
if self.nockp:
cp_es = []
else:
cp_es = ['m5 checkpoint']
exit_es = ['m5 exit']
es = self.prepare_pre_cp() + self.app.prepare_pre_cp() + cp_es + \
self.prepare_post_cp() + self.app.prepare_post_cp() + \
......
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