base,misc: Added version to code
authorBobby R. Bruce <bbruce@ucdavis.edu>
Mon, 13 Apr 2020 21:01:11 +0000 (14:01 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Wed, 22 Apr 2020 19:50:39 +0000 (19:50 +0000)
commit571ab4ad702c234d71ffb384e80f84ac17b22923
treea85fe0e3f195f63814e986a06a8d4ad61cae1766
parent988464160305906f82723e32a076742e3f1ef0c4
base,misc: Added version to code

This version ID string can be accessed from elsewhere in the CPP
codebase using `extern const char *gem5Version;`. The python variable
"gem5Version" may be accessed in by importing the generated
"defines.py". When gem5 now runs it will output the version
currently being used to the CLI.

Change-Id: I4feb6b7317cd2922c56eb8ce3e532b0bfa0e6ed3
Issue-on: https://gem5.atlassian.net/browse/GEM5-411
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27787
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/SConscript
src/base/SConscript
src/base/version.cc [new file with mode: 0644]
src/python/m5/main.py
src/python/pybind11/core.cc
tests/gem5/verifier.py