util: Further consolidate the Args interface in the m5 utility.
authorGabe Black <gabeblack@google.com>
Sun, 5 Apr 2020 07:32:25 +0000 (00:32 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 24 Jul 2020 00:05:00 +0000 (00:05 +0000)
commit9f9e725bc621ce056f657c889107eee02ab0a621
tree03c0654a652e9c5919df0eb48838e48babe0e8eb
parenta216bc70b58f9e668123a292f9f995b7ce755848
util: Further consolidate the Args interface in the m5 utility.

Create static methods to convert any string to an integer or to pack it
into an array of integers. Create non-static methdos named pop() to
pop() the first element and simultaneously convert it. If the conversion
fails, the argument is not popped.

Change-Id: I55d98b3971e7abb7b6206d06ec7fcf046e828d29
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27553
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/m5/src/args.cc
util/m5/src/args.hh
util/m5/src/call_type/addr.cc
util/m5/src/commands.cc