python: Require a unit in anyToFrequency and anyToLatency
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 20 Jan 2021 12:19:26 +0000 (12:19 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 26 Jan 2021 10:45:19 +0000 (10:45 +0000)
commit9e93ce565d6e15e028c397643413892c390ee442
treeea86fe544631cebdb05c35062a6761c44cbc9aae
parentad82dd3b56331d3447cf0c6df6a78606989df4ca
python: Require a unit in anyToFrequency and anyToLatency

The anytToFrequency and anyToLatency conversion functions are
currently ambiguous when called without a unit. Fix this by always
requiring a unit.

Change-Id: I5ea94e655f7ca82c0efe70b9f9f7f734fbf711c1
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39435
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
src/python/m5/util/convert.py
tests/pyunit/util/test_convert.py