run: create missing readfile dir if not present

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-09-15 00:09:03 +01:00
parent 938869fd01
commit a1a929ecaf

1
run
View File

@@ -96,6 +96,7 @@ def main(args, extra_args=None):
trace_type = args.trace
if args.gem5:
os.makedirs(os.path.dirname(common.gem5_readfile), exist_ok=True)
with open(common.gem5_readfile, 'w') as readfile:
readfile.write(args.gem5_readfile)
memory = '{}B'.format(args.memory)