sim,base: make checkpointMapIn warn if an unknown key is found
authorCiro Santilli <ciro.santilli@arm.com>
Tue, 20 Oct 2020 15:28:26 +0000 (16:28 +0100)
committerCiro Santilli <ciro.santilli@arm.com>
Fri, 22 Jan 2021 11:55:36 +0000 (11:55 +0000)
commit83bbe530b9c608301337e6fd4ee76d423d6b4efe
tree933a859e027ecf4334a19bb0908921b594ffa59b
parent4d1a6fffd9dba9ea75c5a09b98e49795ee254686
sim,base: make checkpointMapIn warn if an unknown key is found

The warning happens when a key is present in the checkpoint but not in the
values that gem5 source code knows about.

To do this, we must expose iteration over IniFile section keys. To not
have to make those classes public, a visitor method is implemented.

Change-Id: I23340a953f3e604642b97690a7328b10fdd740a8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37575
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/inifile.cc
src/base/inifile.hh
src/sim/serialize.cc
src/sim/serialize.hh