config: Simplify the definitions of the Voltage and Current params.
authorGabe Black <gabeblack@google.com>
Fri, 10 Nov 2017 11:31:33 +0000 (03:31 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 13 Nov 2017 17:12:11 +0000 (17:12 +0000)
commit8327f8eb72764a277c4c5d21f483e0cd491c2d0e
tree0b34625e7ce65e0dacc32fa2a530ebe05774834f
parent4caa11a3bf0de4caca2a8851e5c0b584b5d309c2
config: Simplify the definitions of the Voltage and Current params.

These had a lot of code which duplicated what was already in the
Float param value class. Also, printing into the ini file with "%f"
forces python to truncate values which require more precision than the
fixed float format supports.

Change-Id: Iad9623b71a31d17b69c184082585dcbb881eaa20
Reviewed-on: https://gem5-review.googlesource.com/5622
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/python/m5/params.py