thread_pool: support passing thread IDs

Then use that to fix gem5 error log read race.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent b49ebb1c8a
commit 5daad53289
5 changed files with 52 additions and 16 deletions

2
run
View File

@@ -715,7 +715,7 @@ Extra options to append at the end of the emulator command line.
if line.rstrip() == self.env['magic_fail_string']:
exit_status = 1
break
if exit_status != 0:
if exit_status != 0 and self.env['show_stdout']:
self.log_error('simulation error detected by parsing logs')
return exit_status