X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fpython%2Fm5%2Fticks.py;h=ce9459f2a98cea00d13bd3b2bce1c236960b4bb5;hb=1ccc7025398a78e0483ec5a9706a8de019d83474;hp=0d82f6edde5502b03ac06a30b6845eb3c58f953a;hpb=2f3b322280a742069fd8965d723a2205a4a8cc00;p=gem5.git diff --git a/src/python/m5/ticks.py b/src/python/m5/ticks.py index 0d82f6edd..ce9459f2a 100644 --- a/src/python/m5/ticks.py +++ b/src/python/m5/ticks.py @@ -34,11 +34,11 @@ tps_fixed = False # once set to true, can't be changed # fix the global frequency and tell C++ about it def fixGlobalFrequency(): - import internal + import _m5.core global tps, tps_fixed if not tps_fixed: tps_fixed = True - internal.core.setClockFrequency(int(tps)) + _m5.core.setClockFrequency(int(tps)) print "Global frequency set at %d ticks per second" % int(tps) def setGlobalFrequency(ticksPerSecond):