common: add --qemu option to override configs

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-11-13 00:00:01 +00:00
parent e54635c3ab
commit 238f1ad1c0
8 changed files with 305 additions and 312 deletions

View File

@@ -20,7 +20,7 @@ parser = common.get_argparse(argparse_args={
args = common.setup(parser)
sys.exit(subprocess.Popen([
os.path.join(common.root_dir, 'trace2line.sh'),
'true' if args.gem5 else 'false',
'true' if common.emulator == 'gem5' else 'false',
common.trace_txt_file,
common.get_toolchain_tool('addr2line'),
common.vmlinux,
@@ -29,7 +29,7 @@ sys.exit(subprocess.Popen([
# This was the full conversion attempt.
# if args.gem5:
# if common.emulator == 'gem5':
# def get_pc(line):
# # TODO
# # stdin = sed -r 's/^.* (0x[^. ]*)[. ].*/\1/' "$common_trace_txt_file")