sim: Implement optParamIn using paramIn.
authorGabe Black <gabe.black@gmail.com>
Wed, 21 Oct 2020 01:46:02 +0000 (18:46 -0700)
committerGabe Black <gabe.black@gmail.com>
Wed, 21 Oct 2020 22:54:39 +0000 (22:54 +0000)
commit368e5a492b0f6cba8478d9242d38e556a68e5fb0
treefa653b49eb21fc8f559f4361298ceadce98cb142
parentc1217f4e89e26cbd3704e0cad1b7765e40c4d9f3
sim: Implement optParamIn using paramIn.

This means only paramIn needs to be specialized, and then optParamIn
will be as well for free. It also removes some duplicate implementation.

Change-Id: Id124a05d04e1c0897121d0e13dd46efe90e8eed0
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36276
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/serialize.hh