diff options
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2018-10-17 17:17:48 +0100 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2018-11-14 10:13:01 +0000 |
commit | 16bf103ad8e2bfbdf200a0ade11cff17dd33e81d (patch) | |
tree | 7dadfd1876ece7422b5b4738359c60f8c2a2974f /src/sim/clock_domain.hh | |
parent | f3016e6846980038a50a66055cd2619df6926207 (diff) | |
download | gem5-16bf103ad8e2bfbdf200a0ade11cff17dd33e81d.tar.xz |
sim: Move paramIn/Out definition to header file
This patch is moving the definitions of paramIn/Out templates to
the header file. In this way we gain:
1) We don't have to do explicit instantiation anymore for user defined
types. This spares us from including data type header files into
serialize.cc
2) We can overload show/parseParam for BitUnions or any other type
that requires special handling when serializing. Just by overloading
the two templates we get all the containers' (list, vector, array..)
serialization for free
2) gtest: With the idea of adding unit tests for Serializable objects,
we can avoid importing serialize.cc and just redefine Serializable
methods in the test source, implementing a Serializable stub
Change-Id: I45a9bb87d5ef886a3668fd477005cd105f612e36
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/13635
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/sim/clock_domain.hh')
0 files changed, 0 insertions, 0 deletions