summaryrefslogtreecommitdiff
path: root/src/python/m5/objects
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2007-01-25 14:59:41 -0500
committerNathan Binkert <binkertn@umich.edu>2007-01-25 14:59:41 -0500
commit73dd0ea35716b90c8448d729273cc153888a223b (patch)
tree4b9e1477bcf945deb7268ddc9be2f150a8c29a6f /src/python/m5/objects
parent4301e4cd08018eb56b4f196afcce9a8311f390b4 (diff)
downloadgem5-73dd0ea35716b90c8448d729273cc153888a223b.tar.xz
Instead of passing an int to represent time between python and C++
pass the tuple of python's struct_time and interpret that. Fixes a problem where the local timezone leaked into the time calculation. Also fix things so that the unix, python, and RTC data sheets all get the right time. Provide both years since 1900 and BCD two digit year. Put the date back at 1/1/2006 for now. --HG-- extra : convert_revision : 473244572f468de2cb579a3dd7ae296a6f81f5d7
Diffstat (limited to 'src/python/m5/objects')
-rw-r--r--src/python/m5/objects/Tsunami.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/python/m5/objects/Tsunami.py b/src/python/m5/objects/Tsunami.py
index 18a776a7f..3d8e6dd04 100644
--- a/src/python/m5/objects/Tsunami.py
+++ b/src/python/m5/objects/Tsunami.py
@@ -13,8 +13,10 @@ class TsunamiCChip(BasicPioDevice):
class TsunamiIO(BasicPioDevice):
type = 'TsunamiIO'
- time = Param.Time('01/01/2009',
+ time = Param.Time('01/01/2006',
"System time to use ('Now' for actual time)")
+ year_is_bcd = Param.Bool(False,
+ "The RTC should interpret the year as a BCD value")
tsunami = Param.Tsunami(Parent.any, "Tsunami")
frequency = Param.Frequency('1024Hz', "frequency of interrupts")