util: c++-ify the call type in the m5 utility.
authorGabe Black <gabeblack@google.com>
Sat, 4 Apr 2020 12:39:50 +0000 (05:39 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 26 Jun 2020 02:36:48 +0000 (02:36 +0000)
commit276a4491714cd1bc025905d3353a997a32a289cf
tree010e6020b54195ccc02d7ab162ddf70feb7c8c7d
parent4b0162342b304ac12d10afac18c1c8656ec2493d
util: c++-ify the call type in the m5 utility.

Use a class to track call type information, and mostly avoid having to
use ifdefs to include or not include support for individual call types.

Change-Id: I731c99e67ea1c511d53431df3f77b4a959919a59
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27549
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabeblack@google.com>
13 files changed:
util/m5/src/SConscript
util/m5/src/addr_call_type.cc
util/m5/src/addr_call_type.hh [deleted file]
util/m5/src/call_type.cc
util/m5/src/call_type.hh
util/m5/src/commands.cc
util/m5/src/commands.hh
util/m5/src/inst_call_type.cc
util/m5/src/inst_call_type.hh [deleted file]
util/m5/src/m5.cc
util/m5/src/semi_call_type.cc
util/m5/src/semi_call_type.hh [deleted file]
util/m5/src/usage.cc