tlm: Don't set SystemC time resolution
authorMatthias Jung <jungma@eit.uni-kl.de>
Thu, 17 Aug 2017 13:44:49 +0000 (15:44 +0200)
committerMatthias Jung <jungma@eit.uni-kl.de>
Mon, 11 Sep 2017 08:21:11 +0000 (08:21 +0000)
commit7fc5d4c36a090fc62c78ad427e8d9a1115121ee4
treebaedf47dac9a448fc01c75fdefd46276db86066b
parenta50bcfb436da42dbd6005da681ed91bb768684f4
tlm: Don't set SystemC time resolution

Some simulators already set the time resolution of SystemC. By coupling
gem5 by means of SystemC with an other tool this can lead to problems:
When the resolution is set twice the simulation will not work.
Therefore, the line is changed to an assertion that checks if the time
resolution of the SystemC simulation is set to gem5's value of 1ps.

Change-Id: I8aafab9dd593eb4697a3c7f69ce181fd9cdd05c4
Reviewed-on: https://gem5-review.googlesource.com/4520
Reviewed-by: Paul Rosenfeld <prosenfeld@micron.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
util/tlm/src/sim_control.cc