util: Split up the commands into separate files in the m5 util.
authorGabe Black <gabeblack@google.com>
Tue, 7 Apr 2020 07:23:05 +0000 (00:23 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 27 Jul 2020 08:28:24 +0000 (08:28 +0000)
commitff82cba0343ad6b5cff753e5710dbfddbae20873
treec2b65127448bf7720ff502fa76a5bdd2548d890e
parent4b1cd4f1a907f2a16afa08fa421a6d3a4c2c6764
util: Split up the commands into separate files in the m5 util.

This way each individual command can have a unit test written for it,
covering how it gathers its arguments and puts them passes them to the
underlying dispatch function.

Change-Id: Ia629c412c8906fc6f5ae02c509ed630755cee45c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27564
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
15 files changed:
util/m5/src/SConscript
util/m5/src/command/SConscript [new file with mode: 0644]
util/m5/src/command/addsymbol.cc [new file with mode: 0644]
util/m5/src/command/checkpoint.cc [new file with mode: 0644]
util/m5/src/command/dumpresetstats.cc [new file with mode: 0644]
util/m5/src/command/dumpstats.cc [new file with mode: 0644]
util/m5/src/command/exit.cc [new file with mode: 0644]
util/m5/src/command/fail.cc [new file with mode: 0644]
util/m5/src/command/initparam.cc [new file with mode: 0644]
util/m5/src/command/loadsymbol.cc [new file with mode: 0644]
util/m5/src/command/readfile.cc [new file with mode: 0644]
util/m5/src/command/resetstats.cc [new file with mode: 0644]
util/m5/src/command/sum.cc [new file with mode: 0644]
util/m5/src/command/writefile.cc [new file with mode: 0644]
util/m5/src/commands.cc [deleted file]